mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-25 05:31:19 +02:00
24632: fix remote ssh filename quoting.
This commit is contained in:
parent
bc45a1b994
commit
658deeb7e9
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-02-29 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 24632: Completion/Unix/Command/_rsync: fix remote ssh filename
|
||||
quoting.
|
||||
|
||||
2008-02-28 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 24627: Src/Zsh/complist.c: fix(?) crash when resizing window
|
||||
|
|
|
@ -58,7 +58,11 @@ elif compset -P 'rsync://'; then
|
|||
elif compset -P 1 '*:'; then
|
||||
|
||||
if zstyle -T ":completion:${curcontext}:files" remote-access; then
|
||||
remfiles=(${(M)${(f)"$(_call_program files ssh -a -x ${IPREFIX%:} ls -d1FL "${(Q)PREFIX%%[^./][^/]#}\*" 2>/dev/null)"}%%[^/]#(|/)})
|
||||
if [[ -z $QIPREFIX ]]
|
||||
then rempat="${PREFIX%%[^./][^/]#}\*"
|
||||
else rempat="${(q)PREFIX%%[^./][^/]#}\*"
|
||||
fi
|
||||
remfiles=(${(M)${(f)"$(_call_program files ssh -a -x ${IPREFIX%:} ls -d1FL "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
|
||||
compset -P '*/'
|
||||
compset -S '/*' || suf='remote file'
|
||||
|
||||
|
|
Loading…
Reference in a new issue