From 14b68472057581150ed0aaa7c4fc8b539ebd61f0 Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Tue, 26 Jun 2012 20:44:03 +0200 Subject: [PATCH] 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) --- fetch-tweets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-tweets.sh b/fetch-tweets.sh index dfa9c25..499707c 100755 --- a/fetch-tweets.sh +++ b/fetch-tweets.sh @@ -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