bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep: echo -en "AB\nA B\n" | egrep 'A?B'


From: p.p.
Subject: grep: echo -en "AB\nA B\n" | egrep 'A?B'
Date: Thu, 13 Dec 2007 20:09:16 +0100 (CET)

if I do

echo -en "AB\nA B\n" | egrep 'A?B'

the result is
AB
A B

while, as I understand it, the second line containing the space should not 
match.

Is this a bug in grep or in my understanding of regular expressions?

I'm using
ubuntu 7.10
with
grep (GNU grep) 2.5.1

Cheers
Peter






      Heute schon einen Blick in die Zukunft von E-Mails wagen? 
www.yahoo.de/mail




reply via email to

[Prev in Thread] Current Thread [Next in Thread]