1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-13 23:31:08 +02:00

44085: _remote_files: Prevent ls/alias settings from mangling file listings

This commit is contained in:
dana 2019-02-26 14:31:00 -06:00
parent 29222ca186
commit c01f10db5e
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2019-02-26 dana <dana@dana.is>
* 44085: Completion/Unix/Type/_remote_files: Prevent ls/alias
settings from mangling file listings
* 44080: Completion/BSD/Command/_bsd_pkg,
Completion/BSD/Command/_fetch, Completion/Darwin/Command/_hdiutil,
Completion/Darwin/Command/_otool,

View file

@ -59,7 +59,10 @@ if zstyle -T ":completion:${curcontext}:files" remote-access; then
fi
# remote filenames
remfiles=(${(M)${(f)"$(_call_program files $cmd $cmd_args $host ls -d1FL -- "$rempat" 2>/dev/null)"}%%[^/]#(|/)})
remfiles=(${(M)${(f)"$(
_call_program files $cmd $cmd_args $host \
QUOTING_STYLE=literal command ls -d1FL -- "$rempat" 2>/dev/null
)"}%%[^/]#(|/)})
compset -P '*/'
compset -S '/*' || (( ${args[(I)-/]} )) || suf='remote file'