Branch: Tag:

2014-02-25

2014-02-25 18:23:52 by Arne Goedeke <el@laramies.com>

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.

1:   #!/bin/sh    - echo "/* File generated on `date` + printf "/* File generated on `date`   by getwhitespace <UnicodeData.txt */      #define SPACECASE8 \\
8:    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