[functions] Allow newlines (\n) in log messages

Allow caller to log messages with embedded newlines when calling
CT_DoLog and other logging functions (eg. CT_Abort...).
This commit is contained in:
Yann E. MORIN" 2009-06-22 21:51:13 +02:00
parent 3ffe23e274
commit 4cd607512b

View File

@ -79,7 +79,7 @@ CT_DoLog() {
if [ $# -eq 0 ]; then
cat -
else
echo "${@}"
printf "${@}\n"
fi |( IFS="${CR}" # We want the full lines, even leading spaces
_prog_bar_cpt=0
_prog_bar[0]='/'