This is patch for bash completion for clang project.
We don't need space when completing options like "-stdlib=".
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 7563 Build 7563: arc lint + arc unit
Event Timeline
| clang/utils/bash-autocomplete.sh | ||
|---|---|---|
| 4 | Do you need to set arg to ""? I thought that variables defined by local would automatically get an empty value. | |
| 33–35 | A shorthand notation of this which is used often in shell programming is [[ ${flag:-1} == '=' ]] && compopt -o nospaceCan you add a comment to describe why you need this? Something like "bash automatically appends a space after '=' by default. Disable it so that it works nicely for options in the form of -foo=bar." | |
Do you need to set arg to ""? I thought that variables defined by local would automatically get an empty value.