[24225] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23826 - in trunk/athena/bin/athrun: . debian

daemon@ATHENA.MIT.EDU (Evan Broder)
Thu May 21 11:31:55 2009

Date: Thu, 21 May 2009 11:31:45 -0400
From: Evan Broder <broder@MIT.EDU>
Message-Id: <200905211531.n4LFVjog007684@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: broder
Date: 2009-05-21 11:31:45 -0400 (Thu, 21 May 2009)
New Revision: 23826

Modified:
   trunk/athena/bin/athrun/bash_completion
   trunk/athena/bin/athrun/debian/changelog
Log:
In athrun:
  * Don't spew errors in bash completion if /mit doesn't exist.


Modified: trunk/athena/bin/athrun/bash_completion
===================================================================
--- trunk/athena/bin/athrun/bash_completion	2009-05-21 04:25:10 UTC (rev 23825)
+++ trunk/athena/bin/athrun/bash_completion	2009-05-21 15:31:45 UTC (rev 23826)
@@ -4,7 +4,7 @@
 
     if [ $COMP_CWORD -eq 1 ]; then
 	local IFS=$'\n'
-	COMPREPLY=( $(cd /mit && compgen -f -- "$cur") )
+	COMPREPLY=( $(cd /mit 2>/dev/null && compgen -f -- "$cur") )
     elif [ $COMP_CWORD -eq 2 ]; then
 	local IFS=$'\n'
 	COMPREPLY=( $(dir="$(eval "athdir /mit/${COMP_WORDS[1]}")" && \

Modified: trunk/athena/bin/athrun/debian/changelog
===================================================================
--- trunk/athena/bin/athrun/debian/changelog	2009-05-21 04:25:10 UTC (rev 23825)
+++ trunk/athena/bin/athrun/debian/changelog	2009-05-21 15:31:45 UTC (rev 23826)
@@ -1,3 +1,9 @@
+debathena-athrun (10.0.1-0debathena2) unstable; urgency=low
+
+  * Don't spew errors in bash completion if /mit doesn't exist.
+
+ -- Evan Broder <broder@mit.edu>  Thu, 21 May 2009 11:31:39 -0400
+
 debathena-athrun (10.0.1-0debathena1) unstable; urgency=low
 
   [ Evan Broder ]


home help back first fref pref prev next nref lref last post