Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#39053 - [bash-completion] make prints errors for grep alias.
Attached to Project:
Arch Linux
Opened by Gereon Kremer (nafur) - Wednesday, 26 February 2014, 12:25 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 20 March 2014, 23:41 GMT
Opened by Gereon Kremer (nafur) - Wednesday, 26 February 2014, 12:25 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 20 March 2014, 23:41 GMT
|
DetailsDescription:
I usually want to have grep print additional information, hence I have something like "alias grep='grep -n'" in my bashrc. If this is the case, the bash-completionfor make will print error messages like "bash: 23:set: command not found". Having a look at /usr/share/bash-completion/completions/make:144 reveals the following problem: The current status is obtained via "local reset=$( set +o | grep -F posix );" and afterwards restored via "$reset". However, due to the alias, the reset variable contains "23:set +o posix". As a fix, I propose to change this line to "local reset=$( set +o | `which grep` -F posix );"... Additional info: * extra/bash-completion 2.1-2 Steps to reproduce: * Add "alias grep='grep -n'" to your bashrc * Go into a folder with a Makefile * Try tab completion on make (enter "make " and press tab) |
This task depends upon
Closed by Eric Belanger (Snowman)
Thursday, 20 March 2014, 23:41 GMT
Reason for closing: Fixed
Additional comments about closing: bash-completion-2.1-4 has been updated to the current git snapshot
Thursday, 20 March 2014, 23:41 GMT
Reason for closing: Fixed
Additional comments about closing: bash-completion-2.1-4 has been updated to the current git snapshot
Hence, I guess I have to wait for the next release?