bash-completion for make target with colon fails

Bug #1890644 reported by Christian Hujer
6
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.

Revision history for this message
Christian Hujer (christian.hujer) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.