<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><pre>Package: bash-completion<br>Version: 1:2.0-1<br><br>Problem: The modules completion is performed by this function<br><br>_modules()<br>{<br> local modpath<br> modpath=/lib/modules/$1<br> COMPREPLY=( $( compgen -W "$( command ls -RL $modpath 2>/dev/null | \<br> sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p' )" -- "$cur" ) )<br>}<br><br>Because the "-L" option, the command "ls" above follows symbolic links.<br><br>For this reason, the completion of the commands "modinfo" and "modprobe"<br>takes a really very long time when you have the symlinks "build"<br>and "source" in $modpath.<br><br>These symlinks are automatically added by the kernel's Debian package<br>generated by make-kpkg.<br><br><br>Fix: Just drop the "-L" option in the command "ls".<br><br>Alternatively you can use something like<br><br>find -P $modpath -type f -name '*.ko' 2>/dev/null | \<br> sed -e 's|.*/||g;s/[.]ko$//'<br><br>Regards,<br><br>Fernando Auil<br><br><br><br></pre></div></body></html>