[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 6c21f884567783be204174fa970b677aa5923cb2
Ville Skyttä
ville.skytta at iki.fi
Mon Jan 3 22:19:55 UTC 2011
The following commit has been merged in the master branch:
commit 6c21f884567783be204174fa970b677aa5923cb2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Jan 4 00:19:48 2011 +0200
Append /sbin to PATH when invoking sysctl.
diff --git a/completions/sysctl b/completions/sysctl
index 41cbd7e..ac25f4e 100644
--- a/completions/sysctl
+++ b/completions/sysctl
@@ -8,7 +8,8 @@ _sysctl()
COMPREPLY=()
_get_comp_words_by_ref cur
- COMPREPLY=( $( compgen -W "$(sysctl -N -a 2>/dev/null)" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W \
+ "$( PATH="$PATH:/sbin" sysctl -N -a 2>/dev/null )" -- "$cur" ) )
return 0
} &&
--
bash-completion
More information about the Bash-completion-commits
mailing list