[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] question mark is extended regex for non-GNU grep
From: |
Michael Haubenwallner |
Subject: |
Re: [PATCH] question mark is extended regex for non-GNU grep |
Date: |
Fri, 21 Nov 2014 15:53:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 11/21/2014 03:06 PM, Eric Blake wrote:
> On 11/21/2014 05:11 AM, Michael Haubenwallner wrote:
>> Accepting \? for at-most-once in basic regex is a GNU grep extension,
>> not accepted by AIX grep for example.
>> * tests/libtool.at: Need EGREP for ? operator, and ? without \ then.
>> With EGREP, need one more \ for $.
>
> Or, stick with GREP but use \{0,1\} instead of \?.
Possible as well, thanks!
/haubi/
0001-question-mark-is-extended-regex-for-non-GNU-grep.patch
Description: Text Data