summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_ssh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-11-23 09:50:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-11-23 09:50:56 +0000
commitb0602dc5b410c97feaba51c6ea3c90322050dc54 (patch)
treebd00637b51f1e92deea968a363ab343bef85fc3f /Completion/Unix/Command/_ssh
parent7d04b8f4869c008c37a56b701445a9e634165e0c (diff)
downloadzsh-b0602dc5b410c97feaba51c6ea3c90322050dc54.tar.gz
zsh-b0602dc5b410c97feaba51c6ea3c90322050dc54.zip
Ignacy Gawędzki: 29912: add "--" to ls in ssh completion
Diffstat (limited to 'Completion/Unix/Command/_ssh')
-rw-r--r--Completion/Unix/Command/_ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index d0944c656..0ec9c84a0 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -16,7 +16,7 @@ _remote_files () {
then rempat="${PREFIX%%[^./][^/]#}\*"
else rempat="${(q)PREFIX%%[^./][^/]#}\*"
fi
- remfiles=(${(M)${(f)"$(_call_program files ssh -o BatchMode=yes $args -a -x ${IPREFIX%:} ls -d1FL "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
+ remfiles=(${(M)${(f)"$(_call_program files ssh -o BatchMode=yes $args -a -x ${IPREFIX%:} ls -d1FL -- "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
compset -P '*/'
compset -S '/*' || suf='remote file'