Re: bug in grep

2016-04-03 Thread Otto Moerbeek
On Sun, Apr 03, 2016 at 10:31:33AM +0200, Martin Natano wrote: > On Sun, Apr 03, 2016 at 09:14:40AM +0200, Otto Moerbeek wrote: > > On Sat, Apr 02, 2016 at 09:13:20PM +, H??ctor Luis Gimbatti wrote: > > > > > Hi, > > > Apparently the error seems to be in /usr/src/usr.bin/grep/util.c at line

Re: bug in grep

2016-04-03 Thread Martin Natano
On Sun, Apr 03, 2016 at 09:14:40AM +0200, Otto Moerbeek wrote: > On Sat, Apr 02, 2016 at 09:13:20PM +, H??ctor Luis Gimbatti wrote: > > > Hi, > > Apparently the error seems to be in /usr/src/usr.bin/grep/util.c at line > > 400: > > > > if ((!(lflag || cflag)) && ((!(bol || eol)) && >

Re: bug in grep

2016-04-03 Thread Otto Moerbeek
On Sat, Apr 02, 2016 at 09:13:20PM +, H??ctor Luis Gimbatti wrote: > Hi, > Apparently the error seems to be in /usr/src/usr.bin/grep/util.c at line 400: > > if ((!(lflag || cflag)) && ((!(bol || eol)) && > ((lastHalfDot) && ((firstHalfDot < 0) || > ((fg->patter

Re: bug in grep

2016-04-02 Thread Héctor Luis Gimbatti
Hi, Apparently the error seems to be in /usr/src/usr.bin/grep/util.c at line 400: if ((!(lflag || cflag)) && ((!(bol || eol)) && ((lastHalfDot) && ((firstHalfDot < 0) || ((fg->patternLen - (lastHalfDot + 1)) < firstHalfDot) { fg->reversedSearch =

bug in grep

2016-04-02 Thread Martin Larsson
Hello. Doing this echo "stuffb01b02stuff" |grep -o b[0-9][0-9] will print: b01 b02 as it should. echo "stuffb01b02stuff" |grep -o b.. will only print last match. so it will print: b02 using b.. works both on linux and with freebsd-grep Thanks!