thoughtbot/laptop — pull request #140 by thcipriani (2013-09-23 02:17:16+00:00)
Title: Change echo to printf in common-components

Make the `fancy_echo()` function more portable.

According to the POSIX standard `echo` has an unspecified behavior if using "\" in any of the arguments.

Came up for me using `linux-prerequisites` on a new Ubuntu box—whatever version of Bash it was using (before doing the `chsh zsh`-thing) just printed, literally, `\n[whatever]` to the screen wherever `fancy_echo` was being used.

To correct this use printf.

References:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html#tag_20_37_16
http://wiki.bash-hackers.org/scripting/nonportable#echo_command