Re: [PATCH] t5540-http-push.sh: avoid non-portable grep -P
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 26, 2009, 22:19 UTC
- Message-ID
- <76718490902261419r314f6ea4r5eb02e9b5b0c40d0@mail.gmail.com>
- In-Reply-To
- <7vmyc8rhry.fsf@gitster.siamese.dyndns.org>
On Thu, Feb 26, 2009 at 4:48 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> So perhaps define a variable:
>
> good="\"\(PUT\|MOVE\) .*/objects/$x2/${x38}_$x40 HTTP/[.0-9]*" 20[0-9]\""
>
> and grep for it?Hmpfh. According to my re_format man page:
Obsolete (``basic'') regular expressions differ in several respects. `|' is an ordinary character and there is no equivalent for its functionality.
j.