_modules: Follow symlinks in /lib/modules/$(uname -r) (Alioth: #313461)

This commit is contained in:
Igor Murzov 2011-12-04 17:31:41 +04:00
parent 3b7f785cb5
commit 98fe4713a3

View File

@ -1134,7 +1134,7 @@ _modules()
{
local modpath
modpath=/lib/modules/$1
COMPREPLY=( $( compgen -W "$( command ls -R $modpath | \
COMPREPLY=( $( compgen -W "$( command ls -RL $modpath | \
sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.gz\)\{0,1\}$/\1/p' )" -- "$cur" ) )
}