From 0e70f7a57e08b6229c41ab98d1d9a9bca46625be Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 4 Oct 2023 22:28:24 -0500 Subject: [PATCH] Revert "od -c => od -tc: od -c is an XSI extension equivalent to LC_CTYPE=C od -tc and not universally available" This reverts commit 0bce9fb8ed0fbaeba0901ff9778756e4e037cd47. --- tests/shtest | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/shtest b/tests/shtest index 11125478..d854f3d9 100755 --- a/tests/shtest +++ b/tests/shtest @@ -517,23 +517,23 @@ if $test_no_color && command -v script >/dev/null 2>&1; then faketty $JQ_NO_B -n . > $d/color printf '\033[0;90mnull\033[0m\r\n' > $d/expect - od -tc $d/expect - od -tc $d/color + od -c $d/expect + od -c $d/color cmp $d/color $d/expect NO_COLOR= faketty $JQ_NO_B -n . > $d/color printf '\033[0;90mnull\033[0m\r\n' > $d/expect - od -tc $d/expect - od -tc $d/color + od -c $d/expect + od -c $d/color cmp $d/color $d/expect NO_COLOR=1 faketty $JQ_NO_B -n . > $d/color printf 'null\r\n' > $d/expect - od -tc $d/expect - od -tc $d/color + od -c $d/expect + od -c $d/color cmp $d/color $d/expect NO_COLOR=1 faketty $JQ_NO_B -Cn . > $d/color printf '\033[0;90mnull\033[0m\r\n' > $d/expect - od -tc $d/expect - od -tc $d/color + od -c $d/expect + od -c $d/color cmp $d/color $d/expect fi