The change introduced in #73 produces an invalid output (at least on Ubuntu 16.04 LTS) :
This happens because echo doesn't interpret backslash escapes by default on some distros, it only does so with the -e flags, which doesn't have a consistent behavior.
Using printf solves that and makes sure that the newline characters are outputed correctly.
The change introduced in #73 produces an invalid output (at least on Ubuntu 16.04 LTS) :
This happens because
echo
doesn't interpret backslash escapes by default on some distros, it only does so with the-e
flags, which doesn't have a consistent behavior. Usingprintf
solves that and makes sure that the newline characters are outputed correctly.ref: http://stackoverflow.com/questions/8467424/echo-newline-in-bash-prints-literal-n/8467449