Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686590 - app-shells/bash-completion-2.9: Setting 'alias grep="grep -P"' makes completion fail (patch)
Summary: app-shells/bash-completion-2.9: Setting 'alias grep="grep -P"' makes completi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-05-23 06:49 UTC by Teika kazura
Modified: 2019-05-25 21:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix for bashcomp-2.0.2/ (bashcomp-grep-fix.patch,1.19 KB, patch)
2019-05-23 06:49 UTC, Teika kazura
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Teika kazura 2019-05-23 06:49:07 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-05-25 09:14:55 UTC
Thanks.  I'll try to update the Gentoo module today.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-05-25 19:57:47 UTC
Fixed in -9999, I'll make a release soonish.
Comment 3 Larry the Git Cow gentoo-dev 2019-05-25 21:11:45 UTC
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(+)