160413.1.1 · 1f2d79ebeec6849f6e151fc125b41539ef39e844
Use printf in place of echo in tests
The behaviour of echo is inconsistent between implementations, in particular regarding whether it expands escapes like `\n`. Use printf consistently in test scripts to avoid test failures from inconsistent echo behaviour.
Fixes #866.
reading declarations
Changes to tests/fail/. All files
tests/fail/unicode_case_insensitive.t
@@ -1,8 +1,8 @@ Setup: $ . $TESTDIR/../setup.sh- $ echo "hello=你好" > test.txt- $ echo "hello=你好" >> test.txt+ $ printf "hello=你好\n" > test.txt+ $ printf "hello=你好\n" >> test.txt Normal search:
tests/fail/unicode_case_insensitive.t.err
@@ -1,8 +1,8 @@ Setup: $ . $TESTDIR/../setup.sh- $ echo "hello=你好" > test.txt- $ echo "hello=你好" >> test.txt+ $ printf "hello=你好\n" > test.txt+ $ printf "hello=你好\n" >> test.txt Normal search: