diff options
author | 2009-09-18 20:28:30 +0000 | |
---|---|---|
committer | 2009-09-18 20:28:30 +0000 | |
commit | 0181d11fadaf7aaa764466194fa94f2d107edba9 (patch) | |
tree | 81d2b30af2ab0b22081c1480e90e84cccaaca9e2 /misc | |
parent | Show only one spelling variant for completion. (diff) | |
download | eselect-0181d11fadaf7aaa764466194fa94f2d107edba9.tar.gz eselect-0181d11fadaf7aaa764466194fa94f2d107edba9.tar.bz2 eselect-0181d11fadaf7aaa764466194fa94f2d107edba9.zip |
Rename a variable.
svn path=/trunk/; revision=660
Diffstat (limited to 'misc')
-rw-r--r-- | misc/eselect.bashcomp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/eselect.bashcomp b/misc/eselect.bashcomp index 3920da6..97cc173 100644 --- a/misc/eselect.bashcomp +++ b/misc/eselect.bashcomp @@ -11,7 +11,7 @@ _eselect() { local options="--brief --no-colour" COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" - sedcmd='s/^ \([[:alnum:]-][[:alnum:]_-]*\)[[:space:],].*$/\1/p' + sedcmd2='s/^ \([[:alnum:]-][[:alnum:]_-]*\)[[:space:],].*$/\1/p' sedcmd3='s/^ \[[[:digit:]][[:digit:]]*\] *\([[:graph:]]*\).*$/\1/p' set - "${COMP_WORDS[@]:1}" @@ -27,8 +27,8 @@ _eselect() { case $# in 1) possibles="${options} $(eselect --brief modules list 2>/dev/null)" ;; - 2) possibles=$(eselect "$1" usage 2>/dev/null \ - | sed -n -e "${sedcmd}") ;; + 2) possibles=$(eselect --brief "$1" usage 2>/dev/null \ + | sed -n -e "${sedcmd2}") ;; 3) case $2 in set|enable|disable) |