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

PATCH: Another minor bug in _remote_files



Completions for ssh/scp give up to early, without trying all completers in
the appropriate zstyle, because _remote_files always returns success even
when it finds no matches.

The drawback to fixing this is that ssh/scp completions may get a lot
slower, because multiple remote executions of "ls" may occur in order
to satisfy all the possible combinations.

Index: Completion/Unix/Command/_ssh
===================================================================
retrieving revision 1.14
diff -c -r1.14 _ssh
--- Completion/Unix/Command/_ssh	6 Dec 2004 16:51:17 -0000	1.14
+++ Completion/Unix/Command/_ssh	7 May 2005 18:29:21 -0000
@@ -23,6 +27,7 @@
       done
       (( ret )) || return 0
     done
+    return ret
   else
     _message -e remote-files 'remote file'
   fi



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