<div dir="ltr"><div>close ... but looks like you have some new bash syntax that mksh doesn't support :-(</div>```<div>/system/bin/sh: syntax error: unexpected '('<br>FAIL: sed interleave -e and -f<br>echo -ne 'hello\n' | "/system/bin/sed" -e 'a abc' -f <(echo -n 'a def') -e 'a ghi'<br>--- expected 2022-10-17 15:57:14.712002199 +0000<br>+++ actual 2022-10-17 15:57:14.720002199 +0000<br>@@ -1,4 +0,0 @@<br>-hello<br>-abc<br>-def<br>-ghi<br><div>```</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 3:55 AM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Sorry about that. (Checked in a text but not the change to grep that fixed it.)<br>
<br>
Speaking of grep:<br>
<br>
  $ echo -e 'one\ntwo' | grep -o ^t<br>
  t<br>
<br>
Debian's is producing "t" there and toybox is not. When we do NOT have -z input<br>
then a NUL in the middle of input is theoretically just another byte, and<br>
therefore we should NOT match it as a start of line, right? Because that's what<br>
I'm doing, but it's not what they're doing...<br>
<br>
The gnu/dammit sed, meanwhile, is acting like I expect:<br>
<br>
$ echo -e 'one\0two' | sed 's/^t/x/'<br>
onetwo<br>
landley@driftwood:~$ echo -e 'one\0two' | sed 's/t/x/'<br>
onexwo<br>
<br>
... and my sed is getting that wrong. Sigh.<br>
<br>
Rob<br>
_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
</blockquote></div>