Prefer 'printf' over 'echo -e' (for portability)
authorBjørn Forsman <bjorn.forsman@gmail.com>
Mon, 30 Dec 2013 16:31:42 +0000 (17:31 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 21 Jan 2014 20:53:12 +0000 (21:53 +0100)
commit221ef3a3ee7bad3955040b6a91eed012277307fb
tree9ec61eeca695705437fcee73b26ec4deb2ab50c8
parent1f6934238a9374fce2acb22bfbf758a60a4f3a2f
Prefer 'printf' over 'echo -e' (for portability)

support/dependencies/dependencies.sh uses #!/bin/sh shebang. It is not
guaranteed that /bin/sh provides an 'echo' implementation that
understands the '-e' flag (interpret backslash escape chars). For
example, dash doesn't.

'printf' is more portable (it must interpret backslash escape chars,
according to POSIX), so use that.

NOTE: Before the previous commit, the dependencies.sh script used
/bin/echo instead of the shell built-in. That's probably why this hasn't
come up before.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/dependencies/dependencies.sh