-
Notifications
You must be signed in to change notification settings - Fork 177
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
bash completions don't like files with spaces #341
Comments
@coderforlife Is it possible to test if your git completions work the same way? |
No, mkdir test
cd test
git init
touch "hello world.txt"
git add he<tab> it completes to |
Thanks for that test. 👍 |
This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
When using bash (and possibly other shells), trying to complete a file name with a space leads to issues. For example:
doesn't complete anything, double lists two entries
hello
andworld.txt
, if typing up tohello\
causes the word to be replaced withhello\\\
, and similarlyhello\ w
completes tohello\\\ w
. If you are past the argument with a space then things work, for exampleyadm add hello\ world.txt fo<tab>
will complete toyadm add hello\ world.txt foo.txt
.Interestingly, if the file that contains a space is already added to
yadm
, then it completes just fine regardless of where in the file you are.The text was updated successfully, but these errors were encountered: