use _get_cword

This commit is contained in:
Guillaume Rousse 2009-02-04 21:33:43 +01:00
parent 44619dbea3
commit e990d69b46
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ _cowsay()
local cur prev local cur prev
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]} cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in case $prev in

View File

@ -9,7 +9,7 @@ _ldapvi()
local cur prev local cur prev
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]} cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in case "$prev" in

View File

@ -27,7 +27,7 @@ _rpcdebug()
local cur prev local cur prev
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]} cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in case $prev in

View File

@ -58,7 +58,7 @@ _smartctl()
local cur prev local cur prev
COMPREPLY=() COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]} cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=${COMP_WORDS[COMP_CWORD-1]}
# --name value style option # --name value style option