@ 201216.1

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/multiline.t. All files

tests/multiline.t

@@ -1,9 +1,9 @@ Setup:    $ . $TESTDIR/setup.sh-  $ echo 'what' > blah.txt-  $ echo 'ever' >> blah.txt-  $ echo 'whatever' >> blah.txt+  $ printf 'what\n' > blah.txt+  $ printf 'ever\n' >> blah.txt+  $ printf 'whatever\n' >> blah.txt  Multiline: