mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
44085: _remote_files: Prevent ls/alias settings from mangling file listings
This commit is contained in:
parent
29222ca186
commit
c01f10db5e
2 changed files with 7 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue