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

tests/line_width.t

@@ -1,7 +1,7 @@ Setup:    $ . $TESTDIR/setup.sh-  $ echo "12345678901234567890123456789012345678901234567890" >> ./blah.txt+  $ printf "12345678901234567890123456789012345678901234567890\n" >> ./blah.txt  Truncate to width inside input line length: