zsh-users / zsh-completions

Additional completion definitions for Zsh.
Other
6.87k stars 712 forks source link

rsync remote files: escape with 3 slashes instead of normally 1 #1063

Closed faxotherapy closed 7 months ago

faxotherapy commented 7 months ago

This is what I have when pressing tab key; auto-completion with 3 slashes instead of 1:

% rsync -Pazh mini:Downloads/25\\\ Amazing\\\ Facts\\\ About\\\ the\\\ Hidden\\\ History\\\ of\\\ Medicine.pdf .
receiving file list ...
rsync: link_stat "/Users/hfa/Downloads/25\ Amazing\ Facts\ About\ the\ Hidden\ History\ of\ Medicine.pdf" failed: No such file or directory (2)
0 files to consider
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1881) [Receiver=3.2.7]

I systematically need to delete two slahes so as to have only one for the transfer to work. Not convenient.

% rsync -Pazh mini:Downloads/25\ Amazing\ Facts\ About\ the\ Hidden\ History\ of\ Medicine.pdf .
receiving file list ... 1 file to consider
msva commented 7 months ago

rsync completion provided by zsh itself (it come out of the box) and is not the part of this collection. Please, create an issue about that in zsh's tracker