Skip to content
Myr

tests: quote `.[]` in shtest which can break syntax highlight (#3235)

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

authored by itchyny · committed by GitHub · parent 562ffec · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:tests/shtest+2 added-2 removed
138 unmodified lines
139cmp $d/out $d/expected140141# Regression test for --raw-output0142printf "a\0b\0" > $d/expected143printf '["a", "b"]' | $VALGRIND $Q $JQ --raw-output0 .[] > $d/out143printf '["a", "b"]' | $VALGRIND $Q $JQ --raw-output0 '.[]' > $d/out144cmp $d/out $d/expected145printf "a\0" > $d/expected146if printf '["a", "c\\u0000d", "b"]' | $VALGRIND $Q $JQ --raw-output0 .[] > $d/out; then146if printf '["a", "c\\u0000d", "b"]' | $VALGRIND $Q $JQ --raw-output0 '.[]' > $d/out; then147 echo "Should exit error on string containing NUL with --raw-output0" 1>&2148 exit 1149elif [ $? -ne 5 ]; then150 echo "Invalid error code" 1>&2
518 unmodified lines