Natanael Copa wrote in <20241023152936.658a4fdd@ncopa-desktop>: |On Wed, 23 Oct 2024 15:11:20 +0200 |Natanael Copa <[email protected]> wrote: | |> Add test that uncovers bug introduced in busybox 1.37.0 |> --- |> testsuite/hexdump.tests | 7 +++++++ |> 1 file changed, 7 insertions(+) |> |> diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests |> index be0379cfc..b933cd1a8 100755 |> --- a/testsuite/hexdump.tests |> +++ b/testsuite/hexdump.tests |> @@ -82,4 +82,11 @@ testing "hexdump -e /2 %d" \ |> "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"\ |> "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"\ |> |> + |> +testing "hexdump -n4 -e '%u'" \ |> + "hexdump -n4 -e '\"%u\"'" \ |> + "12345678" \ |> + "" \ |> + "\x4e\x61\xbc\x00AAAA" |> + |> exit $FAILCOUNT | |I git bisected the bug to: | |commit e2287f99fe6f21fd6435ad04340170ad4ba5f6b3 |Author: Denys Vlasenko <[email protected]> |Date: Thu May 25 17:39:28 2023 +0200 | | od: for !DESKTOP, match output more closely to GNU coreutils 9.1, \ | implement -s | | Signed-off-by: Denys Vlasenko <[email protected]>
Hm, but i get the same strange result of the thing you had posted to AlpineLinux with an elder version: $ hexdump -s16 -n4 -e '"%u"' test;echo 1094795585 $ busybox.static hexdump -s16 -n4 -e '"%u"' test;echo 65 $ busybox.static | sed '2,$d' BusyBox v1.37.0.git (2024-04-20 23:25:28 CEST) multi-call binary (I still carry along and use * a32cb85371 (refs/heads/ashmonitor) ash: Allow enabling job control without a tty in non-interactive mode.. | * 77f67d16e6 (refs/heads/sharith-v5) shell: exchange Dijkstra $(( )) evaluator..) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) _______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox
