about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-02-13 16:14:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-02-13 16:14:51 +0000
commitb9d8d6f20098f707b2dd4a62b5d288910082beb4 (patch)
tree05aa17cc8ca3061c6a2c7887a7a330ec52adfa08
parentdc91d837e8fdf6228df66a74a6fb8c2395f8baec (diff)
downloadzsh-b9d8d6f20098f707b2dd4a62b5d288910082beb4.tar.gz
zsh-b9d8d6f20098f707b2dd4a62b5d288910082beb4.tar.xz
zsh-b9d8d6f20098f707b2dd4a62b5d288910082beb4.zip
users/5915: two levels of quoting are needed for remote files with scp
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_ssh4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7ff88c172..905f3b195 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-02-13  Oliver Kiddle  <opk@zsh.org>
 
+	* users/5915: Completion/Unix/Command/_ssh: two levels of quoting
+	are needed for remote files referenced with scp
+
 	* 18237: Completion/Zsh/Command/_read: complete -t option
 
 	* 18223: Src/builtin.c, Doc/Zsh/builtins.yo: satisfy POSIX
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 2615ca871..4ea17dd87 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -17,9 +17,9 @@ _remote_files () {
     while _tags; do
       while _next_label files expl ${suf:-remote directory}; do
         [[ -n $suf ]] && compadd "$@" "$expl[@]" -d remdispf \
-	    ${remdispf%[*=@|]} && ret=0 
+	    ${(q)remdispf%[*=@|]} && ret=0 
 	compadd ${suf:+-S/} "$@" "$expl[@]" -d remdispd \
-	    ${remdispd%/} && ret=0
+	    ${(q)remdispd%/} && ret=0
       done
       (( ret )) || return 0
     done