Skip to content
Myr

Revert "Revert "od -c => od -tc: od -c is an XSI extension..."

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit 0e70f7a57e08b6229c41ab98d1d9a9bca46625be. There is no reason to revert this change. In #2922, I only disagreed with the commit message suggesting that LC_CTYPE=C od -t c is equivalent to od -c The only documented differences are that -tc is required to be influenced by -N and -j, while -c is not, and that -c is required to only support a subset of the backslash sequences that -tc should support.

authored by Emanuele Torre · committed by Emanuele Torre · parent 0e70f7a · Browse files · 1 file+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−8 removed

  • tests:+8 added−8 removed

1 file+8 added−8 removed

modified:tests/shtest+8 added-8 removed
515 unmodified lines
516 fi517518 faketty $JQ_NO_B -n . > $d/color519 printf '\033[0;90mnull\033[0m\r\n' > $d/expect520 od -c $d/expect521 od -c $d/color520 od -tc $d/expect521 od -tc $d/color522 cmp $d/color $d/expect523 NO_COLOR= faketty $JQ_NO_B -n . > $d/color524 printf '\033[0;90mnull\033[0m\r\n' > $d/expect525 od -c $d/expect526 od -c $d/color525 od -tc $d/expect526 od -tc $d/color527 cmp $d/color $d/expect528 NO_COLOR=1 faketty $JQ_NO_B -n . > $d/color529 printf 'null\r\n' > $d/expect530 od -c $d/expect531 od -c $d/color530 od -tc $d/expect531 od -tc $d/color532 cmp $d/color $d/expect533 NO_COLOR=1 faketty $JQ_NO_B -Cn . > $d/color534 printf '\033[0;90mnull\033[0m\r\n' > $d/expect535 od -c $d/expect536 od -c $d/color535 od -tc $d/expect536 od -tc $d/color537 cmp $d/color $d/expect538fi539540# #2785
52 unmodified lines