diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-12 10:55:21 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-12 10:55:21 +0000 |
commit | 11cd9b2de3b8ce3a73260673c5571fecbc95318f (patch) | |
tree | fbf2623dadfda977e6eb7e884c5815fffbc98e4c /Completion/Unix/Command/_rsync | |
parent | 6e77f38b925e3f37dc69b26efd6173df7281bbe8 (diff) | |
download | zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.tar.gz zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.tar.xz zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.zip |
18512, modified: fix up for ${foo/\//stuf} fix
Diffstat (limited to 'Completion/Unix/Command/_rsync')
-rw-r--r-- | Completion/Unix/Command/_rsync | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_rsync b/Completion/Unix/Command/_rsync index 5f2e87fb8..143a7bd4b 100644 --- a/Completion/Unix/Command/_rsync +++ b/Completion/Unix/Command/_rsync @@ -31,13 +31,14 @@ elif [[ -prefix 1 *:: ]]; then _describe "remote modules" remmodules -S/ elif [[ -prefix 1 *: ]]; then - local remfiles remdispf remdispd + local remfiles remdispf remdispd slash compset -P 1 '*:' if zstyle -T ":completion:${curcontext}:" remote-access; then + slash=/ remfiles=(${(f)"$(ssh -a -x ${words[CURRENT]%:*} ls -d1F ${${${words[CURRENT -]#*:}:h}/\\/(#e)/}/\* 2>/dev/null)"}) +]#*:}:h}/${slash}(#e)/}/\* 2>/dev/null)"}) remdispf=(${remfiles:#*/}) remdispd=(${(M)remfiles:#*/}) @@ -46,7 +47,7 @@ elif [[ -prefix 1 *: ]]; then compadd -d remdispf ${${remfiles:#*/}/[*=@|](#e)/} _wanted files expl 'remote files and directories' \ - compadd -S/ -d remdispd ${${(M)remfiles:#*/}/\\/(#e)/} + compadd -S/ -d remdispd ${${(M)remfiles:#*/}/${slash}(#e)/} else _message 'remote files' fi |