This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bug with grep 3.0.2 in cygwin 3.0.7
On 8/28/2019 3:16 AM, akiki@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't know if all versions of cygwin and grep are concerned.
From my reading of the man page, it's either a program bug or a
documentation bug. It could well be the latter since -E extended
regular expressions require a number of other metacharacters to
be backslash quoted. However, the documentation does not mention
the ^ metacharacter.
Regards - EM
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple