use _get_pword

This commit is contained in:
Guillaume Rousse 2010-01-03 19:01:26 +01:00
parent f35923a505
commit ed3a2f7786

View File

@ -119,7 +119,7 @@ _ssh()
COMPREPLY=()
cur=`_get_cword :`
prev=${COMP_WORDS[COMP_CWORD-1]}
prev=`_get_pword`
_ssh_suboption_check && return 0
@ -197,7 +197,7 @@ _sftp()
COMPREPLY=()
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
prev=`_get_pword`
_ssh_suboption_check && return 0
@ -398,7 +398,7 @@ _ssh_copy_id()
COMPREPLY=()
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
prev=`_get_pword`
case $prev in
-i)