use printf instead of echo -e

echo is not very portable, printf is well-specified

(fail case: dash's builtin echo doesn't know -e)
This commit is contained in:
Matthias Rampke
2012-06-26 20:44:03 +02:00
parent 05d1e94366
commit 14b6847205

View File

@@ -6,7 +6,7 @@ api="http://api.twitter.com/1/statuses/user_timeline.xml?"
if ! test "$1"
then
echo -e "Please specify twitter username\n e.g. $0 kaihendry"
printf "Please specify twitter username\n e.g. %s kaihendry\n" $0
exit 1
fi