bug#21670: surprising bug in grep -e with anchors

2015-10-12 Thread Shlomi Fish
Hi all, On Sun, 11 Oct 2015 21:34:05 -0700 Paul Eggert wrote: > greg boyd wrote: > > test case (single line) > > abchelloabc > > > > grep does not find the line with grep -e '^hello' nor with grep -e 'hello$' > > however, the line is output with > > grep -e '^hello' -e 'hello$' > > Oooo, tha

bug#21670: surprising bug in grep -e with anchors

2015-10-12 Thread Jim Meyering
On Sun, Oct 11, 2015 at 2:01 PM, greg boyd wrote: > This bug appears in GNU grep version 2.20. It is not present in the older > version I have installed on a home system (2.6.3.) > > test case (single line) > abchelloabc > > grep does not find the line with grep -e '^hello' nor with grep -e 'hell

bug#21670: surprising bug in grep -e with anchors

2015-10-12 Thread Jim Meyering
On Sun, Oct 11, 2015 at 9:34 PM, Paul Eggert wrote: > greg boyd wrote: >> >> test case (single line) >> abchelloabc >> >> grep does not find the line with grep -e '^hello' nor with grep -e >> 'hello$' >> however, the line is output with >> grep -e '^hello' -e 'hello$' > > > Oooo, that's a good on

bug#21670: surprising bug in grep -e with anchors

2015-10-12 Thread Jim Meyering
On Mon, Oct 12, 2015 at 9:28 AM, Jim Meyering wrote: > On Sun, Oct 11, 2015 at 2:01 PM, greg boyd wrote: >> This bug appears in GNU grep version 2.20. It is not present in the older >> version I have installed on a home system (2.6.3.) ... > The actual bug was introduced in v2.18-85-g2c94326, > s