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 <[email protected]> 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 > [email protected] > http://lists.landley.net/listinfo.cgi/toybox-landley.net _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
