[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2cf62de30899d4ecd9321f59b80b8da441c3e897
Guillaume Rousse
guillaume at oberkampf.msr-inria.inria.fr
Sun Jan 3 18:02:40 UTC 2010
The following commit has been merged in the master branch:
commit ed3a2f77869b7048944b6b730b6ce908fc202c57
Author: Guillaume Rousse <guillaume at oberkampf.msr-inria.inria.fr>
Date: Sun Jan 3 19:01:26 2010 +0100
use _get_pword
diff --git a/contrib/ssh b/contrib/ssh
index 6f11d8f..37831bb 100644
--- a/contrib/ssh
+++ b/contrib/ssh
@@ -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)
--
bash-completion
More information about the Bash-completion-commits
mailing list