Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13126 - lukas-code:bashcomp, r=weihanglo
fix bash completion in directory with spaces ### What does this PR try to resolve? This PR fixes bash completion for `cargo run --bin <TAB>` when the path to the project contains a space. ### How should we test and review this PR? 1. create a project in a directory with a space, for example `mkdir '/tmp/has space' && cd '/tmp/has space' && cargo new foo && cd foo`. 2. add a binary to Cargo.toml, e.g. ``` [[bin]] name = "bar" ``` 3. on bash, type `cargo run --bin b` and press tab 4. observe error message `bash: $manifest: ambiguous redirect`, command is not completed 5. apply the fix to `$(rustc --print sysroot)/etc/bash_completion.d/cargo` 6. repeat step 3 and observe that the command is completed successfully
- Loading branch information