diff options
-rw-r--r-- | bash_completion | 2 |
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" ) ) } |