# grep from osx pipping@quicksand ~ $ /usr/bin/grep --version 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. pipping@quicksand ~ $ /usr/bin/grep --color=always foo <<< foo | od -c 0000000 033 [ 0 1 ; 3 1 m f o o 033 [ 0 0 m 0000020 \n 0000021 # grep from gentoo prefix, old version pipping@quicksand ~ $ grep --version 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. pipping@quicksand ~ $ grep --color=always foo <<< foo | od -c 0000000 033 [ 0 1 ; 3 1 m f o o 033 [ 0 0 m 0000020 033 [ K \n 0000024 # grep from gentoo prefix, new version pipping@quicksand ~ $ grep --version GNU grep 2.5.3 Copyright (C) 1988, 1992-2002, 2004, 2005 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. pipping@quicksand ~ $ grep --color=always foo <<< foo | od -c 0000000 033 [ 0 1 ; 3 1 m 033 [ K f o o 033 [ 0000020 m 033 [ K \n 0000025 # versions of grep built from source via plain ./configure; make -- no patches bash-3.2$ ./grep-2.5.1a/src/grep --color=always foo <<< foo | od -c 0000000 033 [ 0 1 ; 3 1 m f o o 033 [ 0 0 m 0000020 \n 0000021 bash-3.2$ ./grep-2.5.3/src/grep --color=always foo <<< foo | od -c 0000000 033 [ 0 1 ; 3 1 m 033 [ K f o o 033 [ 0000020 m 033 [ K \n 0000025 bash-3.2$ ./grep-2.5.4-20080209b/src/grep --color=always foo <<< foo | od -c 0000000 033 [ 0 1 ; 3 1 m 033 [ K f o o 033 [ 0000020 m 033 [ K \n 0000025