Skip to content
Snippets Groups Projects
Commit 65b2ed4a authored by Arne Goedeke's avatar Arne Goedeke
Browse files

echo is not portable

backslashes in arguments to echo are undefined. more specifically, in
some implementations backslash escapes will be interpreted, in some they
won't. printf should be fine.
parent e78b0f7c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
echo "/* File generated on `date`
printf "/* File generated on `date`
by getwhitespace <UnicodeData.txt */
#define SPACECASE8 \\
......@@ -8,7 +8,7 @@ by getwhitespace <UnicodeData.txt */
case 0x85:case 0xa0:
"
echo '#define SPACECASE16 SPACECASE8 \'
printf '#define SPACECASE16 SPACECASE8 '
sed -n -e '
s/^\([0-9A-Fa-f]*\);[^;]*;[^;]*;[^;]*;\([^;]*\);/\1 \2 /
/;INFORMATION SEPARATOR /d
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment