[Bug 201650] (e)grep handling regexp wrong

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 17 15:33:58 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650

--- Comment #2 from Mark Felder <feld at 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.


More information about the freebsd-bugs mailing list