diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2023-10-04 20:52:03 +0200 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-10-04 17:46:13 -0500 |
commit | 0bce9fb8ed0fbaeba0901ff9778756e4e037cd47 (patch) | |
tree | d80081308ad45e142abdde86f074fc8cbadd2ea8 | |
parent | 4ebd21e1ebcac6f59b0ed1ea09f56385756f268c (diff) |
od -c => od -tc: od -c is an XSI extension equivalent to LC_CTYPE=C od -tc and not universally available
-rwxr-xr-x | tests/shtest | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/shtest b/tests/shtest index d854f3d9..11125478 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 -c $d/expect - od -c $d/color + od -tc $d/expect + od -tc $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 -c $d/expect - od -c $d/color + od -tc $d/expect + od -tc $d/color cmp $d/color $d/expect NO_COLOR=1 faketty $JQ_NO_B -n . > $d/color printf 'null\r\n' > $d/expect - od -c $d/expect - od -c $d/color + od -tc $d/expect + od -tc $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 -c $d/expect - od -c $d/color + od -tc $d/expect + od -tc $d/color cmp $d/color $d/expect fi |