-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaping of remote filenames containing spaces is broken for rsync #1255
Comments
Hi, what version of rsync are you using? |
Okay tried it. It seems to be fix only partially, though. It still misbehaves when there are 2 files present, If I then try to complete
at the first tab press I get
but on subsequent presses, I get no choices to pick from at all. I'm using rsync 3.3.0 |
Can you add set -x lines to completions/rsync?
And attach the output when completing with the issue? |
@yedayak here you go. |
I wonder if #1232 is the same issue as this one. |
Describe the bug
If I want to copy a file from remote to local containing spaces, the space will be escaped with triple backslashes, but it should be only one.
To reproduce
If there is a named
test file.txt
when I try to completersync localhost:test
I get the completion
rsync localhost:test\\\ file.txt
which doesn't work.
Expected behavior
It should be
rsync localhost:test\ file.txt
Versions (please complete the following information)
echo "$BASH_VERSION"
: 5.2.37(1)-release(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.14.0The text was updated successfully, but these errors were encountered: