mirror of
https://github.com/clap-rs/clap
synced 2024-11-12 23:57:10 +00:00
5948754d2f
compgen takes exactly one "word" argument; if multiple are passed, it will ignore all but the first. If `$cur` is not quoted and contains whitespace, it will be expanded into multiple words, so the completions will be based only on the first word of `$cur`, which is clearly not correct. To fix this, quote `$cur` to prevent word splitting, where necessary (Bash does not perform word splitting inside the extended test command `[[`, so quotes aren't necessary there). |
||
---|---|---|
.. | ||
examples | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |