$ echo -e 'one\0two' | busybox grep -l ^t (standard input) I note that the gnu/dammit grep in my devuan system (from 2018) also gets this wrong without -a, but gets it right with -a?
$ echo -e 'one\0two' | grep -l ^t (standard input) $ echo -e 'one\0two' | grep -al ^t $ Which is just extremely gnu. The gnu/dammit sed gets it right: $ echo -e 'one\0two' | sed 's/^t/x/' | hd 00000000 6f 6e 65 00 74 77 6f 0a |one.two.| 00000008 $ echo -e 'one\0two' | sed 's/t/x/' | hd 00000000 6f 6e 65 00 78 77 6f 0a |one.xwo.| 00000008 Rob _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox