[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-133-g3388314

Igor Murzov e-mail at date.by
Thu Jan 12 20:33:55 UTC 2012


The following commit has been merged in the master branch:
commit db53fc77a5349088b24830b490b16dfcc6bee540
Author: Igor Murzov <e-mail at date.by>
Date:   Thu Jan 12 19:02:29 2012 +0400

    _modules: Ignore error messages.

diff --git a/bash_completion b/bash_completion
index ef79f0a..6886f44 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1144,7 +1144,7 @@ _modules()
 {
     local modpath
     modpath=/lib/modules/$1
-    COMPREPLY=( $( compgen -W "$( command ls -RL $modpath | \
+    COMPREPLY=( $( compgen -W "$( command ls -RL $modpath 2>/dev/null | \
         sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.gz\)\{0,1\}$/\1/p' )" -- "$cur" ) )
 }
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list