* [PATCH 3/3] git-am: print fair error message when format detection fails
2009-08-07 1:08 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Brandon Casey
@ 2009-08-07 1:08 ` Brandon Casey
2009-08-07 1:18 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Jeff King
` (3 subsequent siblings)
4 siblings, 0 replies; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 1:08 UTC (permalink / raw)
To: gitster; +Cc: ni.s, giuseppe.bilotta, git, Brandon Casey
From: Nicolas Sebrecht <ni.s@laposte.net>
Avoid git ending with this message:
"Patch format is not supported."
With improved error message in the format detection failure case by
Giuseppe Bilotta.
Signed-off-by: Nicolas Sebrecht <ni.s@laposte.net>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
---
git-am.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index dd60f5d..f719f6e 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -268,7 +268,11 @@ split_patches () {
msgnum=
;;
*)
- clean_abort "Patch format $patch_format is not supported."
+ if test -n "$parse_patch" ; then
+ clean_abort "Patch format $patch_format is not supported."
+ else
+ clean_abort "Patch format detection failed."
+ fi
;;
esac
}
--
1.6.4
^ permalink raw reply related [flat|nested] 24+ messages in thread* Re: [PATCH 2/3] mailinfo: allow individual e-mail files as input
2009-08-07 1:08 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Brandon Casey
2009-08-07 1:08 ` [PATCH 3/3] git-am: print fair error message when format detection fails Brandon Casey
@ 2009-08-07 1:18 ` Jeff King
2009-08-07 1:21 ` Brandon Casey
2009-08-07 1:27 ` [PATCH v2] " Brandon Casey
` (2 subsequent siblings)
4 siblings, 1 reply; 24+ messages in thread
From: Jeff King @ 2009-08-07 1:18 UTC (permalink / raw)
To: Brandon Casey; +Cc: gitster, ni.s, giuseppe.bilotta, git, Brandon Casey
On Thu, Aug 06, 2009 at 08:08:12PM -0500, Brandon Casey wrote:
> You'll notice that I changed your grep -E to an egrep and dropped the -e.
> I do not see any other grep which uses -e, and I seem to recall Jeff King
> actively removing -e claiming that some greps do not recognize it. I do not
> have a perfect memory though, so apologies to Jeff if I am mistaken.
Fortunately git does have a perfect memory:
$ git log -1 --all-match --author=peff --grep=grep
commit 759ad19e772a79a2a5ae6b7377d57eb21d29e6a0
Author: Jeff King <peff@peff.net>
Date: Wed Oct 22 15:22:53 2008 -0400
submodule: fix some non-portable grep invocations
Not all greps support "-e", but in this case we can easily
convert it to a single extended regex.
The grep in question is Solaris 8's /usr/bin/grep (which also needs
"egrep" instead of "-E", as you already did).
-Peff
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 2/3] mailinfo: allow individual e-mail files as input
2009-08-07 1:18 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Jeff King
@ 2009-08-07 1:21 ` Brandon Casey
0 siblings, 0 replies; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 1:21 UTC (permalink / raw)
To: Jeff King; +Cc: gitster, ni.s, giuseppe.bilotta, git, Brandon Casey
Jeff King wrote:
> On Thu, Aug 06, 2009 at 08:08:12PM -0500, Brandon Casey wrote:
>
>> You'll notice that I changed your grep -E to an egrep and dropped the -e.
>> I do not see any other grep which uses -e, and I seem to recall Jeff King
>> actively removing -e claiming that some greps do not recognize it. I do not
>> have a perfect memory though, so apologies to Jeff if I am mistaken.
>
> Fortunately git does have a perfect memory:
:)
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH v2] mailinfo: allow individual e-mail files as input
2009-08-07 1:08 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Brandon Casey
2009-08-07 1:08 ` [PATCH 3/3] git-am: print fair error message when format detection fails Brandon Casey
2009-08-07 1:18 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Jeff King
@ 2009-08-07 1:27 ` Brandon Casey
2009-08-07 1:52 ` [PATCH v2] " Nicolas Sebrecht
2009-08-07 1:36 ` [PATCH 2/3] " Nicolas Sebrecht
2009-08-07 3:37 ` [PATCH 2/3] " Junio C Hamano
4 siblings, 1 reply; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 1:27 UTC (permalink / raw)
To: gitster; +Cc: ni.s, giuseppe.bilotta, git, Brandon Casey
From: Junio C Hamano <gitster@pobox.com>
We traditionally allowed a mbox file or a directory name of a maildir (but
never an individual file inside a maildir) to be given to "git am". Even
though an individual file in a maildir (or more generally, a piece of
RFC2822 e-mail) is not a mbox file, it contains enough information to
create a commit out of it, so there is no reason to reject one. Running
mailsplit on such a file feels stupid, but it does not hurt.
This builds on top of a5a6755 (git-am foreign patch support: introduce
patch_format, 2009-05-27) that introduced mailbox format detection. The
codepath to deal with a mbox requires it to begin with "From " line and
also allows it to begin with "From: ", but a random piece of e-mail can
and often do begin with any valid RFC2822 header lines.
Instead of checking the first line, we extract all the lines up to the
first empty line, and make sure they look like e-mail headers.
This fixes the test in t4150-am.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
---
Maybe the second patch should be replaced with this one. The original did
not test the first three lines for conformance to RFC2822.
-brandon
git-am.sh | 19 +++++++++++++++++++
t/t4150-am.sh | 2 +-
2 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index d64d997..49f2be4 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -191,6 +191,25 @@ check_patch_format () {
esac
;;
esac
+ if test -z "$patch_format" &&
+ test -n "$l1" &&
+ test -n "$l2" &&
+ test -n "$l3"
+ then
+ # This begins with three non-empty lines. Is this a
+ # piece of e-mail a-la RFC2822? Grab all the headers,
+ # discarding the indented remainder of folded lines,
+ # and see if it looks like that they all begin with the
+ # header field names...
+ {
+ echo "$l1"
+ echo "$l2"
+ echo "$l3"
+ cat
+ } | sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
+ egrep -v '^[A-Za-z]+(-[A-Za-z]+)*:' >/dev/null ||
+ patch_format=mbox
+ fi
} < "$1" || clean_abort
}
diff --git a/t/t4150-am.sh b/t/t4150-am.sh
index ad2a85f..4e8e176 100755
--- a/t/t4150-am.sh
+++ b/t/t4150-am.sh
@@ -114,7 +114,7 @@ test_expect_success 'am applies patch correctly' '
test "$(git rev-parse second^)" = "$(git rev-parse HEAD^)"
'
-test_expect_failure 'am correctly applies patch from email lacking "From" in first 3 lines' '
+test_expect_success 'am correctly applies patch from email lacking "From" in first 3 lines' '
git checkout first &&
git am patch1.eml &&
! test -d .git/rebase-apply &&
--
1.6.4
^ permalink raw reply related [flat|nested] 24+ messages in thread* [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 1:27 ` [PATCH v2] " Brandon Casey
@ 2009-08-07 1:52 ` Nicolas Sebrecht
2009-08-07 1:56 ` Nicolas Sebrecht
2009-08-07 2:30 ` Brandon Casey
0 siblings, 2 replies; 24+ messages in thread
From: Nicolas Sebrecht @ 2009-08-07 1:52 UTC (permalink / raw)
To: Brandon Casey; +Cc: gitster, giuseppe.bilotta, git, Brandon Casey
The 06/08/09, Brandon Casey wrote:
> diff --git a/git-am.sh b/git-am.sh
> index d64d997..49f2be4 100755
> --- a/git-am.sh
> +++ b/git-am.sh
<...>
> + {
> + echo "$l1"
> + echo "$l2"
> + echo "$l3"
> + cat
UUOC, I guess.
> + } | sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
^^
Is it still needed?
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 24+ messages in thread* [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 1:52 ` [PATCH v2] " Nicolas Sebrecht
@ 2009-08-07 1:56 ` Nicolas Sebrecht
2009-08-07 2:05 ` Brandon Casey
2009-08-07 2:30 ` Brandon Casey
1 sibling, 1 reply; 24+ messages in thread
From: Nicolas Sebrecht @ 2009-08-07 1:56 UTC (permalink / raw)
To: Nicolas Sebrecht
Cc: Brandon Casey, gitster, giuseppe.bilotta, git, Brandon Casey
The 07/08/09, Nicolas Sebrecht wrote:
> The 06/08/09, Brandon Casey wrote:
>
> > diff --git a/git-am.sh b/git-am.sh
> > index d64d997..49f2be4 100755
> > --- a/git-am.sh
> > +++ b/git-am.sh
>
> <...>
>
> > + {
> > + echo "$l1"
> > + echo "$l2"
> > + echo "$l3"
> > + cat
>
> UUOC, I guess.
>
> > + } | sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
> ^^
Owned by the tabulation, sorry.
Do we still need the "$1"?
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 1:56 ` Nicolas Sebrecht
@ 2009-08-07 2:05 ` Brandon Casey
2009-08-07 2:31 ` Nicolas Sebrecht
0 siblings, 1 reply; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 2:05 UTC (permalink / raw)
To: Nicolas Sebrecht; +Cc: gitster, giuseppe.bilotta, git, Brandon Casey
Nicolas Sebrecht wrote:
> The 07/08/09, Nicolas Sebrecht wrote:
>> The 06/08/09, Brandon Casey wrote:
>>
>>> diff --git a/git-am.sh b/git-am.sh
>>> index d64d997..49f2be4 100755
>>> --- a/git-am.sh
>>> +++ b/git-am.sh
>> <...>
>>
>>> + {
>>> + echo "$l1"
>>> + echo "$l2"
>>> + echo "$l3"
>>> + cat
>> UUOC, I guess.
>>
>>> + } | sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
>> ^^
>
> Owned by the tabulation, sorry.
>
> Do we still need the "$1"?
Whoops, I missed that "$1" argument to sed. That means the v2 followup
patch is unnecessary since the sed is operating on a file argument
and _not_ stdin. I think it's a little strange like that though...
{
sed "$1"
} < "$1"
-brandon
^ permalink raw reply [flat|nested] 24+ messages in thread* [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 2:05 ` Brandon Casey
@ 2009-08-07 2:31 ` Nicolas Sebrecht
2009-08-07 2:49 ` Brandon Casey
0 siblings, 1 reply; 24+ messages in thread
From: Nicolas Sebrecht @ 2009-08-07 2:31 UTC (permalink / raw)
To: Brandon Casey
Cc: Nicolas Sebrecht, gitster, giuseppe.bilotta, git, Brandon Casey
The 06/08/09, Brandon Casey wrote:
> Whoops, I missed that "$1" argument to sed. That means the v2 followup
> patch is unnecessary since the sed is operating on a file argument
> and _not_ stdin.
Yes.
> I think it's a little strange like that though...
>
> {
> sed "$1"
> } < "$1"
I'm not sure why this comment. The former
sed "$1"
whithout anything else is enough.
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 2:31 ` Nicolas Sebrecht
@ 2009-08-07 2:49 ` Brandon Casey
2009-08-07 4:39 ` Nicolas Sebrecht
0 siblings, 1 reply; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 2:49 UTC (permalink / raw)
To: Nicolas Sebrecht; +Cc: gitster, giuseppe.bilotta, git, Brandon Casey
Nicolas Sebrecht wrote:
> The 06/08/09, Brandon Casey wrote:
>> I think it's a little strange like that though...
>>
>> {
>> sed "$1"
>> } < "$1"
>
> I'm not sure why this comment. The former
>
> sed "$1"
>
> whithout anything else is enough.
The "former", or Junio's original patch, effectively has this form:
{
sed "$1"
} < "$1"
Without reading closely enough, I thought it looked like this:
{
sed
} < "$1"
Since I didn't study the sed statement closely enough, I assumed that it was
operating on the remaining portion of the patch email that was redirected to
the block on stdin. I missed the fact that the file name was supplied to
it. My comment was that I found it strange (and maybe unintuitive, or maybe
it's just me) that "$1" was piped on stdin and it was supplied as an
argument to sed.
-brandon
^ permalink raw reply [flat|nested] 24+ messages in thread* [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 2:49 ` Brandon Casey
@ 2009-08-07 4:39 ` Nicolas Sebrecht
2009-08-07 5:25 ` Junio C Hamano
0 siblings, 1 reply; 24+ messages in thread
From: Nicolas Sebrecht @ 2009-08-07 4:39 UTC (permalink / raw)
To: Brandon Casey
Cc: Junio C Hamano, Nicolas Sebrecht, giuseppe.bilotta, git,
Brandon Casey
The 06/08/09, Brandon Casey wrote:
> The "former", or Junio's original patch, effectively has this form:
>
> {
> sed "$1"
> } < "$1"
>
> Without reading closely enough, I thought it looked like this:
>
> {
> sed
> } < "$1"
>
> Since I didn't study the sed statement closely enough, I assumed that it was
> operating on the remaining portion of the patch email that was redirected to
> the block on stdin. I missed the fact that the file name was supplied to
> it. My comment was that I found it strange (and maybe unintuitive, or maybe
> it's just me) that "$1" was piped on stdin and it was supplied as an
> argument to sed.
Thinking to this a bit more, I tend to think that your intention to get
rid of the "$1" argument of sed is the right thing to do.
It really seems like the argument has precedence to the redirection
_but_
I couldn't find any reference to this case in POSIX and I guess that the
behaviour may differ between implementations of sed. I don't know.
Perhaps somebody could tell us if our hesitation is justified (or not)?
Finally and to prevent strange behaviours, I would write
{
real l1
real l2
real l3
{
echo "$l1"
echo "$l2"
echo "$l3"
cat
} | sed
} < "$1"
instead of
{
real l1
real l2
real l3
sed "$1"
} < "$1"
because the latter may contain either the content of the whole file
(coming from the argument) or the content of the file _whithout_ the
first three lines (coming from the redirection '<' amputated by the
'read' statements).
Junio?
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 4:39 ` Nicolas Sebrecht
@ 2009-08-07 5:25 ` Junio C Hamano
0 siblings, 0 replies; 24+ messages in thread
From: Junio C Hamano @ 2009-08-07 5:25 UTC (permalink / raw)
To: Nicolas Sebrecht
Cc: Brandon Casey, Junio C Hamano, giuseppe.bilotta, git,
Brandon Casey
Nicolas Sebrecht <nicolas.s.dev@gmx.fr> writes:
> It really seems like the argument has precedence to the redirection
> I couldn't find any reference to this case in POSIX and I guess that the
> behaviour may differ between implementations of sed.
> Perhaps somebody could tell us if our hesitation is justified (or not)?
If you give file arguments, standard input is irrelevant to sed. I bet you
do:
$ sed -e something file
all the time, and you rely on the command not to get stuck after reading
the file because now it wants to continue reading from its stdin, which is
connected to your terminal. Have you ever worried about having to type ^D
after every such invocation of sed? I bet you never have ;-)
Also, your _preferred_ alternative
{ read l1; read l2; read l3;
( echo "$l1"; echo "$l2"; echo "$l3"; cat | sed )
} <"$1"
is not just simply inefficient, but is actively wrong. The "read" can
butcher your input. For example, try:
$ echo "a b " | ( read l1; echo "<$l1>" )
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v2] Re: mailinfo: allow individual e-mail files as input
2009-08-07 1:52 ` [PATCH v2] " Nicolas Sebrecht
2009-08-07 1:56 ` Nicolas Sebrecht
@ 2009-08-07 2:30 ` Brandon Casey
1 sibling, 0 replies; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 2:30 UTC (permalink / raw)
To: Nicolas Sebrecht; +Cc: gitster, giuseppe.bilotta, git, Brandon Casey
Nicolas Sebrecht wrote:
> The 06/08/09, Brandon Casey wrote:
>
>> diff --git a/git-am.sh b/git-am.sh
>> index d64d997..49f2be4 100755
>> --- a/git-am.sh
>> +++ b/git-am.sh
>
> <...>
>
>> + {
>> + echo "$l1"
>> + echo "$l2"
>> + echo "$l3"
>> + cat
>
> UUOC, I guess.
I needed to use google to figure out that UUOC means Useless Use Of Cat,
but I think you are mistaken. Rather than trying to explain it, try this
with and without 'cat' commented out:
#!/bin/sh
{
{
echo "line one"
echo "line two"
cat
} | sed -e 's/$/Q/'
} <<-EOF
This is a line of text
Here is another line of text.
And another
EOF
Hopefully you'll see the parallels to the sequence in git-am.sh and understand
that cat was used to send the rest of the email through sed along with the first
three lines that were read explicitly. git-am.sh looks more like this:
{
read l1
...
{
echo "$l1"
...
cat
} | sed ...
} << "$1"
At least, I thought that is how it looked until I read your other email where
you pointed out that "$1" is an argument to sed.
>> + } | sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
> ^^
>
> Is it still needed?
Yes. The '/^[ ]/d' portion of the sed statement deletes any lines with
leading space or tab. This avoids passing continuation fields to the
grep statement which is not designed for them, and so would fail (or
match, depending on how you look at it. We used -v with grep).
-brandon
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH 2/3] Re: mailinfo: allow individual e-mail files as input
2009-08-07 1:08 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Brandon Casey
` (2 preceding siblings ...)
2009-08-07 1:27 ` [PATCH v2] " Brandon Casey
@ 2009-08-07 1:36 ` Nicolas Sebrecht
2009-08-07 1:59 ` Brandon Casey
2009-08-07 3:37 ` [PATCH 2/3] " Junio C Hamano
4 siblings, 1 reply; 24+ messages in thread
From: Nicolas Sebrecht @ 2009-08-07 1:36 UTC (permalink / raw)
To: Brandon Casey; +Cc: gitster, giuseppe.bilotta, git, Brandon Casey
The 06/08/09, Brandon Casey wrote:
> git-am.sh | 14 ++++++++++++++
> t/t4150-am.sh | 2 +-
> 2 files changed, 15 insertions(+), 1 deletions(-)
>
> diff --git a/git-am.sh b/git-am.sh
> index d64d997..dd60f5d 100755
> --- a/git-am.sh
> +++ b/git-am.sh
> @@ -191,6 +191,20 @@ check_patch_format () {
> esac
> ;;
> esac
> + if test -z "$patch_format" &&
> + test -n "$l1" &&
> + test -n "$l2" &&
> + test -n "$l3"
> + then
> + # This begins with three non-empty lines. Is this a
> + # piece of e-mail a-la RFC2822? Grab all the headers,
> + # discarding the indented remainder of folded lines,
> + # and see if it looks like that they all begin with the
> + # header field names...
> + sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
> + egrep -v '^[A-Za-z]+(-[A-Za-z]+)*:' >/dev/null ||
> + patch_format=mbox
> + fi
> } < "$1" || clean_abort
> }
May I ask why you resurrect this "first three lines check for rfc2822"
instead of dumbly falling back to the "mbox" patch_format? Performance?
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 2/3] Re: mailinfo: allow individual e-mail files as input
2009-08-07 1:36 ` [PATCH 2/3] " Nicolas Sebrecht
@ 2009-08-07 1:59 ` Brandon Casey
0 siblings, 0 replies; 24+ messages in thread
From: Brandon Casey @ 2009-08-07 1:59 UTC (permalink / raw)
To: Nicolas Sebrecht; +Cc: gitster, giuseppe.bilotta, git, Brandon Casey
Nicolas Sebrecht wrote:
> The 06/08/09, Brandon Casey wrote:
>
>> git-am.sh | 14 ++++++++++++++
>> t/t4150-am.sh | 2 +-
>> 2 files changed, 15 insertions(+), 1 deletions(-)
>>
>> diff --git a/git-am.sh b/git-am.sh
>> index d64d997..dd60f5d 100755
>> --- a/git-am.sh
>> +++ b/git-am.sh
>> @@ -191,6 +191,20 @@ check_patch_format () {
>> esac
>> ;;
>> esac
>> + if test -z "$patch_format" &&
>> + test -n "$l1" &&
>> + test -n "$l2" &&
>> + test -n "$l3"
>> + then
>> + # This begins with three non-empty lines. Is this a
>> + # piece of e-mail a-la RFC2822? Grab all the headers,
>> + # discarding the indented remainder of folded lines,
>> + # and see if it looks like that they all begin with the
>> + # header field names...
>> + sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
>> + egrep -v '^[A-Za-z]+(-[A-Za-z]+)*:' >/dev/null ||
>> + patch_format=mbox
>> + fi
>> } < "$1" || clean_abort
>> }
>
> May I ask why you resurrect this "first three lines check for rfc2822"
> instead of dumbly falling back to the "mbox" patch_format? Performance?
This at least checks that the header has the correct form for an email.
The dumb fallback to mbox format would just blindly pass the patch to
mailsplit which (I think) would just dump out an improperly formatted
email. git-am would then start the process of applying the malformed
patch and fail. With this patch, we can catch the failure earlier
and hopefully provide a better complaint to the user.
-brandon
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 2/3] mailinfo: allow individual e-mail files as input
2009-08-07 1:08 ` [PATCH 2/3] mailinfo: allow individual e-mail files as input Brandon Casey
` (3 preceding siblings ...)
2009-08-07 1:36 ` [PATCH 2/3] " Nicolas Sebrecht
@ 2009-08-07 3:37 ` Junio C Hamano
4 siblings, 0 replies; 24+ messages in thread
From: Junio C Hamano @ 2009-08-07 3:37 UTC (permalink / raw)
To: Brandon Casey; +Cc: ni.s, giuseppe.bilotta, git, Brandon Casey
Brandon Casey <casey@nrlssc.navy.mil> writes:
> You'll notice that I changed your grep -E to an egrep and dropped the -e.
That's the right thing to do. I was re-reading Nicolas Sebrecht's series
and checked with "git grep -e 'egrep ' -e 'grep .*-E '" to reach the same
conclusion. Thanks.
^ permalink raw reply [flat|nested] 24+ messages in thread