That's great, then it looks to be fixed in current version of bsdgrep. I didn't test against gnugrep on FreeBSD, only on Linux.
-- Jim Pryor ----- Reply message ----- From: "Eitan Adler" <[email protected]> To: "Jim Pryor" <[email protected]> Cc: "John D. Hendrickson and Sara Darnell" <[email protected]>, <[email protected]> Subject: bin/166842: bsdgrep(1) inconsistently handles ^ in non-anchoring positions Date: Thu, Apr 12, 2012 8:55 pm Some notes: [10010 eitan@radar ~ ]%uname -rms FreeBSD 10.0-CURRENT amd64 [10007 eitan@radar ~ ]%bsdgrep --version bsdgrep (BSD grep) 2.5.1-FreeBSD [10004 eitan@radar ~ ]%printf 'abc def' | bsdgrep -o '^[a-z]' a [10006 eitan@radar ~ ]%gnugrep --version gnugrep (GNU grep) 2.5.1-FreeBSD [10005 eitan@radar ~ ]%printf 'abc def' | gnugrep -o '^[a-z]' a b c [441 eadler1@harvey ~ ]%uname -rms Linux 2.6.38-13-generic-pae i686 [437 eadler1@harvey ~ ]%grep --version GNU grep 2.6.3 [439 eadler1@harvey ~ ]%printf 'abc def' | grep -o '^[a-z]' a -- Eitan Adler
_______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
