[Toybox] Fixed the grep thing.
Rob Landley
rob at landley.net
Mon Oct 17 04:04:50 PDT 2022
Sorry about that. (Checked in a text but not the change to grep that fixed it.)
Speaking of grep:
$ echo -e 'one\ntwo' | grep -o ^t
t
Debian's is producing "t" there and toybox is not. When we do NOT have -z input
then a NUL in the middle of input is theoretically just another byte, and
therefore we should NOT match it as a start of line, right? Because that's what
I'm doing, but it's not what they're doing...
The gnu/dammit sed, meanwhile, is acting like I expect:
$ echo -e 'one\0two' | sed 's/^t/x/'
onetwo
landley at driftwood:~$ echo -e 'one\0two' | sed 's/t/x/'
onexwo
... and my sed is getting that wrong. Sigh.
Rob
More information about the Toybox
mailing list