Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _ssh: Fix completion of ProxyCommand option.



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