bash-completion for make target with colon fails
Bug #1890644 reported by
Christian Hujer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Given the following Makefile
```
foo\:bar:
echo foo >$@
```
When completing
Expected: Then completion completes to "foo:bar"
Actual: Then completion completes to "foo"
Change needed: The completion needs to ignore a colon in the target name when the colon is prefixed with a backslash.
To post a comment you must log in.
This might be the same bug:
Given the following Makefile
```
foo\ bar:
touch "$@"
```
When completing
Expected: Then completion completes to "foo\ bar"
Actual: Then completion offers "foo" and "bar" for completion
Change needed: The completion needs to support escapes, ignoring spaces and colons in the target name when prefixed with a backslash.