Skip to content

Commit 31dac28

Browse files
authored
tests: quote .[] in shtest which can break syntax highlight (#3235)
1 parent 562ffec commit 31dac28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/shtest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ cmp $d/out $d/expected
140140

141141
# Regression test for --raw-output0
142142
printf "a\0b\0" > $d/expected
143-
printf '["a", "b"]' | $VALGRIND $Q $JQ --raw-output0 .[] > $d/out
143+
printf '["a", "b"]' | $VALGRIND $Q $JQ --raw-output0 '.[]' > $d/out
144144
cmp $d/out $d/expected
145145
printf "a\0" > $d/expected
146-
if printf '["a", "c\\u0000d", "b"]' | $VALGRIND $Q $JQ --raw-output0 .[] > $d/out; then
146+
if printf '["a", "c\\u0000d", "b"]' | $VALGRIND $Q $JQ --raw-output0 '.[]' > $d/out; then
147147
echo "Should exit error on string containing NUL with --raw-output0" 1>&2
148148
exit 1
149149
elif [ $? -ne 5 ]; then

0 commit comments

Comments
 (0)