Skip to content

Commit

Permalink
Revert "od -c => od -tc: od -c is an XSI extension equivalent to LC_C…
Browse files Browse the repository at this point in the history
…TYPE=C od -tc and not universally available"

This reverts commit 0bce9fb.
  • Loading branch information
nicowilliams committed Oct 5, 2023
1 parent 0bce9fb commit 0e70f7a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/shtest
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e70f7a

Please sign in to comment.