mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01: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
|
|
@ -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…
Add table
Add a link
Reference in a new issue