'echo' behaviour differs between SYSV and BSD.

This commit is contained in:
John Birrell 2008-04-26 04:03:58 +00:00
parent 4cc75139b9
commit abb532f661
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178547
2 changed files with 8 additions and 4 deletions

View File

@ -26,7 +26,9 @@
#
#ident "%Z%%M% %I% %E% SMI"
echo "\
BSDECHO=-e
echo ${BSDECHO} "\
/*\n\
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\
* Use is subject to license terms.\n\
@ -43,7 +45,7 @@ replace=' "\1",'
sed -n "s/$pattern/$replace/p" || exit 1
echo "\
echo ${BSDECHO} "\
};\n\
\n\
static const int _dt_ntag = sizeof (_dt_errtags) / sizeof (_dt_errtags[0]);\n\

View File

@ -26,7 +26,9 @@
#
#ident "%Z%%M% %I% %E% SMI"
echo "\
BSDECHO=-e
echo ${BSDECHO} "\
/*\n\
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\
* Use is subject to license terms.\n\
@ -47,7 +49,7 @@ nawk '
printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10)));
}'
echo "\
echo ${BSDECHO} "\
default: return (\"unknown\");\n\
}\n\
}"