[Rivet-svn] r2834 - trunk/data

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Dec 7 18:41:55 GMT 2010


Author: buckley
Date: Tue Dec  7 18:41:54 2010
New Revision: 2834

Log:
Protect against completion fallback fail on non-existing path stubs

Modified:
   trunk/data/rivet-completion

Modified: trunk/data/rivet-completion
==============================================================================
--- trunk/data/rivet-completion	Tue Dec  7 18:16:32 2010	(r2833)
+++ trunk/data/rivet-completion	Tue Dec  7 18:41:54 2010	(r2834)
@@ -5,7 +5,7 @@
 test "$?" -eq 0 || function _filedir() {
 	local cur prev commands options command
     cur="${COMP_WORDS[COMP_CWORD]}"
-    COMPREPLY=( $(compgen -W "$(ls ${cur}*)" -- ${cur}) )
+    COMPREPLY=( $(compgen -W "$(ls ${cur}* 2> /dev/null)" -- ${cur}) )
     return 0
 }
 


More information about the Rivet-svn mailing list