- make insmod/modprobe completion handle .ko files for the 2.5/2.6 Linux kernel

This commit is contained in:
ianmacd 2003-05-16 05:12:14 +00:00
parent 3ff1aab725
commit c0ebebe77a

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b # bash_completion - some programmable completion functions for bash 2.05b
# #
# $Id: bash_completion,v 1.563 2003/05/06 08:39:49 ianmacd Exp $ # $Id: bash_completion,v 1.564 2003/05/16 07:12:14 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -573,7 +573,7 @@ _insmod()
elif [ -r $modpath -a -x $modpath ]; then elif [ -r $modpath -a -x $modpath ]; then
# do module name completion # do module name completion
COMPREPLY=( $( command ls -R $modpath | \ COMPREPLY=( $( command ls -R $modpath | \
sed -ne 's/^\('$cur'.*\)\.o\(\|.gz\)$/\1/p') ) sed -ne 's/^\('$cur'.*\)\.k\?o\(\|.gz\)$/\1/p') )
else else
_filedir _filedir
fi fi