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

[PATH] fix typo in _ssh



% scp <TAB>
_arguments:comparguments:327: invalid rest argument definition: *(-O)-X+[specify ...



diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index e9ca454b4..fd2a90b59 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -27,7 +27,7 @@ _ssh () {
     '-r[recursively copy directories (follows symbolic links)]'
     '-S+[specify ssh program]:path to ssh:_command_names -e'
     '-v[verbose mode]'
-    '*(-O)-X+[specify sftp protocol option]: : _values "sftp option"
+    '(-O)*-X+[specify sftp protocol option]: : _values "sftp option"
       "nrequests[set max concurrent SFTP read or write requests]\:requests [64]"
       "buffer[set max buffer size for a single SFTP read/write operation]\: \:_numbers -l 0 -m 256K -d 32K -u bytes -f size \:B\:bytes \:K\:kilobytes"'
   )






Messages sorted by: Reverse Date, Date, Thread, Author