From db53fc77a5349088b24830b490b16dfcc6bee540 Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Thu, 12 Jan 2012 19:02:29 +0400 Subject: [PATCH] _modules: Ignore error messages. --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) ) }