git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adam Tkac <atkac@redhat.com>
To: git@vger.kernel.org
Subject: [PATCH v2] If `egrep` is aliased, temporary disable it in bash.completion
Date: Thu, 29 Nov 2012 16:14:22 +0100	[thread overview]
Message-ID: <20121129151418.GA19169@redhat.com> (raw)

Originally reported as https://bugzilla.redhat.com/show_bug.cgi?id=863780

Signed-off-by: Adam Tkac <atkac@redhat.com>
Signed-off-by: Holger Arnold <holgerar@gmail.com>
---
 contrib/completion/git-completion.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 0960acc..79073c2 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -565,7 +565,7 @@ __git_complete_strategy ()
 __git_list_all_commands ()
 {
 	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]')
 	do
 		case $i in
 		*--*)             : helper pattern;;
-- 
1.8.0


-- 
Adam Tkac, Red Hat, Inc.

             reply	other threads:[~2012-11-29 15:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 15:14 Adam Tkac [this message]
2012-11-29 17:03 ` [PATCH v2] If `egrep` is aliased, temporary disable it in bash.completion Junio C Hamano
2012-11-29 17:33   ` Junio C Hamano
2012-12-06 14:05     ` Adam Tkac
2012-12-06 18:01       ` Junio C Hamano
2012-12-12 22:34         ` Felipe Contreras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121129151418.GA19169@redhat.com \
    --to=atkac@redhat.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).