[Bash-completion-commits] [SCM] bash-completion branch, master, updated. b5505959afd6744e6d09c4a4b1a888d118aa9063

Ville Skyttä ville.skytta at iki.fi
Sun Sep 6 15:51:08 UTC 2009


The following commit has been merged in the master branch:
commit b5505959afd6744e6d09c4a4b1a888d118aa9063
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Sep 6 18:51:00 2009 +0300

    Don't hardcode path to lsmod.

diff --git a/CHANGES b/CHANGES
index 6d8b523..fd10f14 100644
--- a/CHANGES
+++ b/CHANGES
@@ -105,6 +105,7 @@ bash-completion (1.x)
     and zmore filename completions.
   * Add xz and compress support and more tarball filename extensions to
     rpmbuild -t*/--tarbuild completion.
+  * Don't hardcode path to lsmod.
 
   [ Todd Zullinger ]
   * Make yum complete on filenames after install, deplist, update and upgrade
diff --git a/bash_completion b/bash_completion
index 93ef65a..ff639d1 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 ) )
 }
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list