[Toybox] Grep --color and tests.

enh enh at google.com
Thu Dec 27 10:46:22 PST 2018


meh, BSD-based regex implementations seem to think that the empty
regex is an error anyway. (i only skimmed it, but i think POSIX
agrees: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html)

On Mon, Dec 24, 2018 at 1:54 PM Rob Landley <rob at landley.net> wrote:
>
> I got grep --color checked in, and it seems to be working for me, but I need to
> fluff out the test suite. The gnu/dammit version of grep is, of course, insane:
>
>   $ grep -o '' README
>   $ grep -o '' grep
>   Binary file grep matches
>
> It's THE SAME TEST...
>
> Oh, and "echo | grep -w ''" matches, "echo hello | grep -w ''" does not, and
> "echo 'one  two' | grep -w ''" matches again, but only with two spaces. Yeah, I
> implemented all that. No, there isn't a -w in posix...
>
> Rob
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net



More information about the Toybox mailing list