summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2012-01-12 19:02:29 +0400
committerIgor Murzov <e-mail@date.by>2012-01-13 00:17:51 +0400
commitdb53fc77a5349088b24830b490b16dfcc6bee540 (patch)
treebe32c1f5f79a9970f861cb4cfba719f9209c2074
parent1cb1e31e182b0503ea82f9f74c9b43fe91799844 (diff)
downloadbash-completion-db53fc77a5349088b24830b490b16dfcc6bee540.tar.gz
_modules: Ignore error messages.
-rw-r--r--bash_completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion
index ef79f0ab..6886f441 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" ) )
}