Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-09-22 Thread Chris Wagner
On 2019-08-28 3:16 am, ak...@free.fr wrote: Hi, I encounter some problem with grep option -E on cygwin 3.0.7 echo "a^b" | grep "a^b" #answer a^b ie it's OK but echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO I have to backslash ^ to be OK like : grep -E 'a\^b' Is-it a bug ? I do

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-30 Thread Eliot Moss
On 8/30/2019 2:12 AM, Brian Inglis wrote: On 2019-08-29 19:42, Eliot Moss wrote: On 8/29/2019 3:08 PM, Andrey Repin wrote: I encounter some problem with grep option -E on cygwin 3.0.7 echo "a^b" | grep "a^b" #answer a^b ie it's OK but echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-30 Thread Jose Isaias Cabrera
Duncan Roe, on Friday, August 30, 2019 03:47 AM, wrote... > > On Thu, Aug 29, 2019 at 09:42:46PM -0400, Eliot Moss wrote: > > On 8/29/2019 3:08 PM, Andrey Repin wrote: > > But my main point is that RTM would be enough; RTFM seemed > > to me perhaps a little more rude than necessary. > > > > Rega

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-30 Thread Andrey Repin
Greetings, Eliot Moss! >>> I encounter some problem with grep option -E on cygwin 3.0.7 >> >> >>> echo "a^b" | grep "a^b" #answer a^b ie it's OK >>> but >>> echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO >> >> That's an expected result of an impossible constraint. >> >>> I have to

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-30 Thread Duncan Roe
On Thu, Aug 29, 2019 at 09:42:46PM -0400, Eliot Moss wrote: > On 8/29/2019 3:08 PM, Andrey Repin wrote: > > Greetings, ak...@free.fr! > > > > > Hi, > > > I encounter some problem with grep option -E on cygwin 3.0.7 > > > > > > > echo "a^b" | grep "a^b" #answer a^b ie it's OK > > > but > > > echo "a

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-29 Thread Brian Inglis
On 2019-08-29 19:42, Eliot Moss wrote: > On 8/29/2019 3:08 PM, Andrey Repin wrote: >>> I encounter some problem with grep option -E on cygwin 3.0.7 >>> echo "a^b" | grep "a^b" #answer a^b ie it's OK >>> but >>> echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO >> That's an expected result

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-29 Thread Eliot Moss
On 8/29/2019 3:08 PM, Andrey Repin wrote: Greetings, ak...@free.fr! Hi, I encounter some problem with grep option -E on cygwin 3.0.7 echo "a^b" | grep "a^b" #answer a^b ie it's OK but echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO That's an expected result of an impossible co

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-29 Thread Andrey Repin
Greetings, ak...@free.fr! > Hi, > I encounter some problem with grep option -E on cygwin 3.0.7 > echo "a^b" | grep "a^b" #answer a^b ie it's OK > but > echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO That's an expected result of an impossible constraint. > I have to backslash

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-28 Thread Eric Blake
On 8/28/19 2:16 AM, ak...@free.fr wrote: > Hi, > I encounter some problem with grep option -E on cygwin 3.0.7 > > > echo "a^b" | grep "a^b" #answer a^b ie it's OK POSIX says: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html "A BRE special character has special propert

Re: bug with grep 3.0.2 in cygwin 3.0.7

2019-08-28 Thread Eliot Moss
On 8/28/2019 3:16 AM, ak...@free.fr wrote: Hi, I encounter some problem with grep option -E on cygwin 3.0.7 echo "a^b" | grep "a^b" #answer a^b ie it's OK but echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO I have to backslash ^ to be OK like : grep -E 'a\^b' Is-it a bug ? I don

bug with grep 3.0.2 in cygwin 3.0.7

2019-08-28 Thread akiki
Hi, I encounter some problem with grep option -E on cygwin 3.0.7 echo "a^b" | grep "a^b" #answer a^b ie it's OK but echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO I have to backslash ^ to be OK like : grep -E 'a\^b' Is-it a bug ? I don't know if all versions of cygwin and