Summary: | app-shells/bash-completion-2.9: Setting 'alias grep="grep -P"' makes completion fail (patch) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Teika kazura <teika> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, shell-tools |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Fix for bashcomp-2.0.2/ |
Thanks. I'll try to update the Gentoo module today. Fixed in -9999, I'll make a release soonish. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0d590787b5e8e0581e68eb1b8ed50f6b04d7722 commit b0d590787b5e8e0581e68eb1b8ed50f6b04d7722 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-05-25 20:55:07 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-05-25 21:11:33 +0000 app-shells/bash-completion: Bump Gentoo support to 2.0.3 Bump Gentoo support package to a new version including fix for 'grep' being defined as alias by the user. Closes: https://bugs.gentoo.org/686590 Signed-off-by: Michał Górny <mgorny@gentoo.org> app-shells/bash-completion/Manifest | 1 + .../bash-completion/bash-completion-2.9-r1.ebuild | 157 +++++++++++++++++++++ 2 files changed, 158 insertions(+) |
Created attachment 577618 [details, diff] Fix for bashcomp-2.0.2/ This is a Gentoo issue, not of the upstream. *** To reproduce: $ alias grep="grep -P" $ alias foo=/bin/true $ alias f<type TAB> -> Displayed something like: ------------------------------------------------------------------------ $ alias fgrep: conflicting matchers specified grep: conflicting matchers specified find free ------------------------------------------------------------------------ *** Fix This can be fixed by modifying 3 occurences of "grep -F" by "command grep -F" in bash_completion. These lines come from uncle Michał's patch in bashcomp-2.0.2. I attached the patch. Thanks a lot, Gentoo developers.