parser: use printf instead of echo -n
authorJean-Sebastien Gelinas <calestar@gmail.com>
Sat, 11 Jul 2009 20:54:03 +0000 (16:54 -0400)
committerJean Privat <jean@pryen.org>
Tue, 14 Jul 2009 15:21:30 +0000 (11:21 -0400)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

src/parser/prescc.sh

index d82fe6f..01f8d6e 100755 (executable)
@@ -59,7 +59,7 @@ infile=$1
 outfile=$2
 tmpfile=`mktemp "$2.XXXXXX"`
 
-echo -n "/* This file is autogenerated, do not modify it */" > "$outfile"
+printf "/* This file is autogenerated, do not modify it */" > "$outfile"
 cat "$infile" >> "$outfile"
 
 # The perl code is used to list all the available parameters in the extended grammar