summaryrefslogtreecommitdiff
path: root/bash_completion
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-09-06 18:51:00 +0300
committerVille Skyttä <ville.skytta@iki.fi>2009-09-06 18:51:00 +0300
commitb5505959afd6744e6d09c4a4b1a888d118aa9063 (patch)
tree1e934e171f9300662f9e42a35762fcdf44ba784a /bash_completion
parent47fb2d8f0e3382c7b3512c5f38c9cfc6b9f7f615 (diff)
downloadbash-completion-b5505959afd6744e6d09c4a4b1a888d118aa9063.tar.gz
Don't hardcode path to lsmod.
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion
index 93ef65a4..ff639d14 100644
--- a/bash_completion
+++ b/bash_completion
@@ -551,7 +551,7 @@ _modules()
#
_installed_modules()
{
- COMPREPLY=( $( compgen -W "$( /sbin/lsmod | \
+ COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" lsmod | \
awk '{if (NR != 1) print $1}' )" -- $1 ) )
}