[Bug 1330173] Re: bash-completion of Makefile: invalid option name
Peter Cordes
peter at cordes.ca
Mon Dec 1 09:27:27 UTC 2014
Good catch, but the right fix is to use command grep, like most of the uses of grep in bash-completion do. --color=never isn't portable to systems where grep isn't GNU grep. So yes, this is a bug, and bash-completion is supposed to not break even if you have
alias grep='cat /dev/random'
But yes, --color=auto usually works better. If you ever make one-
liners on the cmdline, you're shooting yourself in the foot unless you
like remembering to type command grep, or \grep. Like less $(ls
foo/bar | grep something).
On the other hand, less -R can handle color escape codes these days,
and even matches searches in coloured text. Hmm, that's pretty nice
actually.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1330173
Title:
bash-completion of Makefile: invalid option name
Status in bash-completion package in Ubuntu:
In Progress
Bug description:
Happened with two computers when upgraded from 13.10 to 14.04.
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
GNU bash, versio 4.3.11(1)-release (x86_64-pc-linux-gnu)
Steps:
Create very simple Makefile
echo -e "foo: \n\nbar:" > Makefile
make [TAB]
Gives error "bash: set: posix: invalid option name"
make[TAB][TAB]
gives
bash: set: posix: invalid option name
bash: set: posix: invalid option name
bar foo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1330173/+subscriptions
More information about the foundations-bugs
mailing list