<div dir="ltr">note that that transcript is from macos, since it's more easily to hand. but the original failure i reported was on android. interestingly the github ci still seems to think that ubuntu is fine. but they're seeing the same macos error. (plus a seq segfault?! we really need to get the tar tests passing on macos again so we can spot actual new breakages as they happen... who knows how long seq has been broken there? [because i _don't_ run the tests on macos as part of android's ci because we don't have mac support there --- github is toybox's only mac ci]; <a href="https://github.com/landley/toybox/runs/7936685655?check_suite_focus=true">https://github.com/landley/toybox/runs/7936685655?check_suite_focus=true</a>)<div><br></div><div>is it a shell thing? what does `|&` even mean? is that a new bashism that macos' old bash/android's mksh don't implement?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 23, 2022 at 9:55 AM enh <<a href="mailto:enh@google.com">enh@google.com</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"><div dir="ltr">no, and (oddly?) neither does _reverting_ that change...<div><br></div><div>~$ git clone <a href="https://github.com/landley/toybox.git" target="_blank">https://github.com/landley/toybox.git</a> toybox<br>Cloning into 'toybox'...<br>cdremote: Enumerating objects: 26019, done.<br>remote: Counting objects: 100% (137/137), done.<br>remote: Compressing objects: 100% (62/62), done.<br>remote: Total 26019 (delta 78), reused 108 (delta 75), pack-reused 25882<br>Receiving objects: 100% (26019/26019), 11.00 MiB | 19.84 MiB/s, done.<br>Resolving deltas: 24% (4531/18878))<br>Resolving deltas: 100% (18878/18878), done.<br>m~$ cd toybox<br>~/toybox$ make macos_defconfig<br>cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NLS=1 \<br> -DPROJECT_NAME=\"ToyBox\"<br>scripts/genconfig.sh<br>KCONFIG_ALLCONFIG=./kconfig/macos_miniconfig kconfig/conf -n Config.in > /dev/null<br>~/toybox$ make test_sort<br>scripts/test.sh sort<br>scripts/runtest.sh: line 217: syntax error near unexpected token `;'<br>scripts/runtest.sh: line 217: ` R) LEN=0; B=1; ;&'<br>sort:Library probe<br>generated/{Config.in,newtoys.h,flags.h,globals.h,tags.h,help.h}<br>Compile generated/testdir/sort..................<br>scripts/test.sh: line 42: realpath: command not found<br>usage: dirname string [...]<br>PASS: sort unknown argument<br>PASS: sort sort<br>PASS: sort #2<br>PASS: sort stdin<br>PASS: sort numeric<br>PASS: sort reverse<br>PASS: sort sort -o<br>PASS: sort sort -o same<br>PASS: sort one key<br>PASS: sort key range with numeric option<br>PASS: sort key range with numeric option and global reverse<br>PASS: sort key range with multiple options<br>PASS: sort key doesn't strip leading blanks, disables fallback global sort<br>PASS: sort key edge case with -t<br>PASS: sort -k2,2f<br>PASS: sort -k2,2<br>PASS: sort -f -k2,2<br>PASS: sort -t, -k3n<br>scripts/runtest.sh: eval: line 150: syntax error near unexpected token `&'<br>scripts/runtest.sh: eval: line 150: `"/sort" -c |& grep -o [0-9]*'<br>FAIL: sort -c<br>echo -ne 'a\nb\na\nc' | "/sort" -c |& grep -o [0-9]*<br>--- expected 2022-08-23 09:54:03.000000000 -0700<br>+++ actual 2022-08-23 09:54:03.000000000 -0700<br>@@ -1 +0,0 @@<br>-3<br>make: *** [test_sort] Error 1<br>~/toybox$ git revert 529a25a2eea4<br>[master 053fefd1] Revert "Sort -c reported line number was off by one."</div><div> 2 files changed, 2 insertions(+), 3 deletions(-)<br>~/toybox$ make test_sort<br>scripts/test.sh sort<br>scripts/runtest.sh: line 217: syntax error near unexpected token `;'<br>scripts/runtest.sh: line 217: ` R) LEN=0; B=1; ;&'<br>sort:generated/{newtoys.h,flags.h,globals.h,tags.h,help.h}<br>Compile generated/testdir/sort.....<br>scripts/test.sh: line 42: realpath: command not found<br>usage: dirname string [...]<br>PASS: sort unknown argument<br>PASS: sort sort<br>PASS: sort #2<br>PASS: sort stdin<br>PASS: sort numeric<br>PASS: sort reverse<br>PASS: sort sort -o<br>PASS: sort sort -o same<br>PASS: sort one key<br>PASS: sort key range with numeric option<br>PASS: sort key range with numeric option and global reverse<br>PASS: sort key range with multiple options<br>PASS: sort key doesn't strip leading blanks, disables fallback global sort<br>PASS: sort key edge case with -t<br>PASS: sort -k2,2f<br>PASS: sort -k2,2<br>PASS: sort -f -k2,2<br>PASS: sort -t, -k3n<br>scripts/runtest.sh: eval: line 150: syntax error near unexpected token `&'<br>scripts/runtest.sh: eval: line 150: `"/sort" -uc |& grep -o [0-9]*'<br>FAIL: sort -c<br>echo -ne 'a\nb\nb\nc' | "/sort" -uc |& grep -o [0-9]*<br>--- expected 2022-08-23 09:54:35.000000000 -0700<br>+++ actual 2022-08-23 09:54:35.000000000 -0700<br>@@ -1 +0,0 @@<br>-3<br>make: *** [test_sort] Error 1<br>~/toybox$ <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 22, 2022 at 8:03 PM Rob Landley <<a href="mailto:rob@landley.net" target="_blank">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">On 8/22/22 11:09, enh via Toybox wrote:<br>
> <br>
> FAIL: sort -c<br>
> echo -ne 'a\nb\na\nc' | "/usr/bin/sort" -c |& grep -o [0-9]*<br>
> --- expected 2022-08-22 08:56:24.000000000 -0700<br>
> +++ actual 2022-08-22 08:56:24.000000000 -0700<br>
> @@ -1 +0,0 @@<br>
> -3<br>
> make: *** [test_sort] Error 1<br>
<br>
Commit 529a25a2eea4 didn't fix it for you?<br>
<br>
Rob<br>
</blockquote></div>
</blockquote></div>