DTrace: Explicitly check for OS X to decide if echo needs -e.

This commit is contained in:
darran 2010-03-05 01:34:35 +00:00
parent 7a5d03568b
commit dc1214bcba
2 changed files with 10 additions and 2 deletions

View File

@ -26,7 +26,11 @@
#
#ident "%Z%%M% %I% %E% SMI"
BSDECHO=
if [[ $(uname) = "Darwin" ]]; then
BSDECHO=
else
BSDECHO=-e
fi
echo ${BSDECHO} "\
/*\n\

View File

@ -26,7 +26,11 @@
#
#ident "%Z%%M% %I% %E% SMI"
BSDECHO=
if [[ $(uname) = "Darwin" ]]; then
BSDECHO=
else
BSDECHO=-e
fi
echo ${BSDECHO} "\
/*\n\