Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _ssh: Fix completion of ProxyCommand option.
- X-seq: zsh-workers 39174
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _ssh: Fix completion of ProxyCommand option.
- Date: Sun, 4 Sep 2016 19:25:58 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=YnREhAoDYXNhyjMF+NxydBR1H6w=; b=nM6xMR bfM9LdQhH9q0hfY1QKl4l+sK1+l6Hh/6qV9ytbFoRX7vvWaVN9Y3jeZ9c26rr+QD IH3Q6Xjq+dsPZsHNfyael97e1C2c+gkB9igmlWbaRBfmOwPzL+EHu4RRmzWn5dWs zKSUSIVfdI/AOuwvpETxacF6WLhZIy4tKJVys=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-sasl-enc:x-sasl-enc; s=smtpout; bh=YnREhAoDYXNhyjMF+NxydBR1H6 w=; b=EwYixzu8w/Zy2h0T34rrjGA0554R6TScOHIa8ooDSyAEDVKB9O/8l0Wv0C aosbtjl4NkKLwnG9FirFVSExakadkHZQBNRwpcYdKwkBuS5EXVIfO5NaJNSxJ81P qYOJ4MQgXlE+sZpVjpmyMC0eKz9OesWlAkEufEOrKT9vKNoQg=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The incumbent code would discard the first word of the value of the
ProxyCommand option. Stop doing so. With that removed the remaining
two lines were equivalent to _cmdstring, so just call it directly.
---
Completion/Unix/Command/_ssh | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 727fd35..7b2cdd8 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -382,10 +382,7 @@ _ssh () {
'2' && ret=0
;;
(#i)proxycommand=*)
- compset -q
- shift 1 words
- (( CURRENT-- ))
- _normal && ret=0
+ _cmdstring && ret=0
;;
(#i)rekeylimit=*)
_message -e 'maximum number of bytes transmitted before renegotiating session key'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author