Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2017 00:59:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 166842] grep(1) inconsistently handles ^ in non-anchoring positions
Message-ID:  <bug-166842-8-lfLvGwQeZH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-166842-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-166842-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D166842

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|bsdgrep(1) inconsistently   |grep(1) inconsistently
                   |handles ^ in non-anchoring  |handles ^ in non-anchoring
                   |positions                   |positions

--- Comment #4 from Ed Maste <emaste@freebsd.org> ---
It looks like at least some of these issues are reproducible with the GNU g=
rep
in FreeBSD 10 - for example:

% grep --version
grep (GNU grep) 2.5.1-FreeBSD

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

% printf abc | grep -o '^[a-c]'=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
a
b
c

I was not able to reproduce any of the failures with bsdgrep in FreeBSD 10.=
 I
have updated the title to refer to non-BSD grep.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-166842-8-lfLvGwQeZH>