1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

users/6080, users/6083: more quoting fixes

This commit is contained in:
Oliver Kiddle 2003-05-07 12:44:46 +00:00
parent 4f9580ec03
commit 9d071829ec
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2003-05-07 Oliver Kiddle <opk@zsh.org>
* users/6083: Completion/Unix/Command/_rlogin,
Completion/Unix/Command/_ssh: get hostname from IPREFIX instead
of words[CURRENT] to avoid quote characters
* Michał Politowski: users/6080: Completion/Unix/Command/_ssh:
remove one level of quoting on files before using with remote ls
2003-05-07 Peter Stephenson <pws@csr.com>
* 18508: Src/subst.c, Test/D04parameter.ztst: quoting of the `/'

View file

@ -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'

View file

@ -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'