diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-05-07 12:44:46 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-05-07 12:44:46 +0000 |
commit | 9d071829ecbcb34128c34d4b2855342f81f1dd48 (patch) | |
tree | 4d532e6d84cda8e509357b2fccce30bc1411659c /Completion/Unix | |
parent | 4f9580ec039ef11093791cff7263dcb06614045e (diff) | |
download | zsh-9d071829ecbcb34128c34d4b2855342f81f1dd48.tar.gz zsh-9d071829ecbcb34128c34d4b2855342f81f1dd48.tar.xz zsh-9d071829ecbcb34128c34d4b2855342f81f1dd48.zip |
users/6080, users/6083: more quoting fixes
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_rlogin | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_ssh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_rlogin b/Completion/Unix/Command/_rlogin index 32f49e19a..4fb010ec6 100644 --- a/Completion/Unix/Command/_rlogin +++ b/Completion/Unix/Command/_rlogin @@ -5,7 +5,7 @@ _rcp_remote_files () { local expl remfiles remdispf remdispd suf ret=1 if zstyle -T ":completion:${curcontext}:" remote-access; then - remfiles=(${(M)${(f)"$(rsh ${words[CURRENT]%%:*} ls -d1F ${PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)}) + remfiles=(${(M)${(f)"$(rsh ${IPREFIX%:} ls -d1F ${PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)}) compset -P '*/' compset -S '/*' || suf='remote file' diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index 4ea17dd87..8716c676c 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -6,7 +6,7 @@ _remote_files () { if zstyle -T ":completion:${curcontext}:" remote-access; then zparseopts -D -E -a args p: 1 2 4 6 F: - remfiles=(${(M)${(f)"$(ssh $args -a -x ${words[CURRENT]%%:*} ls -d1F ${PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)}) + remfiles=(${(M)${(f)"$(ssh $args -a -x ${IPREFIX%:} ls -d1F ${(Q)PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)}) compset -P '*/' compset -S '/*' || suf='remote file' |