Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2015 15:33:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201650] (e)grep handling regexp wrong
Message-ID:  <bug-201650-8-SkflONjIAC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201650-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201650-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=201650

--- Comment #2 from Mark Felder <feld@FreeBSD.org> ---
RHEL 5

-bash-3.2$ echo "abc" | grep -e "^[a-z]" -o
a
b
c
-bash-3.2$ grep -V
grep (GNU grep) 2.5.1

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.



RHEL 6

-bash-4.1$ echo "abc" | grep -e "^[a-z]" -o
a
-bash-4.1$ grep -V
GNU grep 2.6.3

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


grep went GPLv3 at 2.5.3, so we might not be able to backport the fix. Note
that -o was a brand new feature in 2.5.1.


Perhaps we should just flip the switch and move to bsdgrep for 11-RELEASE?

-- 
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-201650-8-SkflONjIAC>