bin/166842: bsdgrep(1) inconsistently handles ^ in non-anchoring positions

Eitan Adler lists at eitanadler.com
Fri Apr 13 00:56:14 UTC 2012


Some notes:

[10010 eitan at radar ~ ]%uname -rms
FreeBSD 10.0-CURRENT amd64
[10007 eitan at radar ~ ]%bsdgrep --version
bsdgrep (BSD grep) 2.5.1-FreeBSD
[10004 eitan at radar ~ ]%printf 'abc def' | bsdgrep -o '^[a-z]'
a
[10006 eitan at radar ~ ]%gnugrep --version
gnugrep (GNU grep) 2.5.1-FreeBSD
[10005 eitan at radar ~ ]%printf 'abc def' | gnugrep -o '^[a-z]'
a
b
c
[441 eadler1 at harvey ~ ]%uname -rms
Linux 2.6.38-13-generic-pae i686
[437 eadler1 at harvey ~ ]%grep --version
GNU grep 2.6.3
[439 eadler1 at harvey ~ ]%printf 'abc def' | grep -o '^[a-z]'
a

-- 
Eitan Adler


More information about the freebsd-bugs mailing list