On Thu, Nov 22, 2012 at 02:55:21PM -0500, Marc Khouzam wrote:
> On Thu, Nov 22, 2012 at 10:41 AM, Adam Tkac <at...@redhat.com> wrote:
> > Hello all,
> > attached patch fixes bash completion when `egrep` is aliased to `egrep
> > --color=always`.
> To avoid any aliases, it may be better to use
Good idea, thanks. Improved patch is attached.
> This could be worthwhile for all utilities used by the script.
> Just a thought.
> > Comments are welcomed.
> > Regards, Adam
> > --
> > Adam Tkac, Red Hat, Inc.
Adam Tkac, Red Hat, Inc.
>From 255192296cd175fddcac2647447a66a0ca55b855 Mon Sep 17 00:00:00 2001
From: Adam Tkac <at...@redhat.com>
Date: Thu, 22 Nov 2012 16:34:58 +0100
Subject: [PATCH] If `egrep` is aliased, temporary disable it in
Originally reported as https://bugzilla.redhat.com/show_bug.cgi?id=863780
Signed-off-by: Adam Tkac <at...@redhat.com>
Signed-off-by: Holger Arnold <holge...@gmail.com>
contrib/completion/git-completion.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash
index 0960acc..79073c2 100644
@@ -565,7 +565,7 @@ __git_complete_strategy ()
local i IFS=" "$'\n'
- for i in $(git help -a|egrep '^ [a-zA-Z0-9]')
+ for i in $(git help -a| \egrep '^ [a-zA-Z0-9]')
case $i in
*--*) : helper pattern;;