[Bash-completion-devel] [bash-completion-Bugs][313566] No completion with colormake as make alias

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Sat Mar 10 12:14:21 UTC 2012


Bugs item #313566, was opened at 10/03/2012 12:14
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313566&group_id=100114

Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: No completion with colormake as make alias 
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
When colormake is used as an alias for make, completion doesn't work

Step to reproduce :
- Open a terminal
- Create alias for make to colormake
    > alias make=coloarmake
- Go to a directory containing a 
- Type make command and try to autocomplete
    > make <TAB><TAB>
- No completion happens.

Explanation :
Colormake generate color even if stdout is not a tty. As a result, all generated lines begins with \e caracter and are not matched by /^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ regular expression in awk.

Possible solutions :
- replace make by \make in COMREPLY line (fast and easy).
- report bug upstream and expect colormake maintainer will implement  ls/grep/dir/... --color equivalent option (need more changes than first solution).

Additonal information :
It could also be useful to add colormake in the list of programs impacted by completion. It is useful if colormake is not used as make alias patch is already applied in ubuntu :
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/743208

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313566&group_id=100114



More information about the Bash-completion-devel mailing list