From b9d8d6f20098f707b2dd4a62b5d288910082beb4 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 13 Feb 2003 16:14:51 +0000 Subject: users/5915: two levels of quoting are needed for remote files with scp --- Completion/Unix/Command/_ssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command') 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 -- cgit 1.4.1