[functions] Allow newlines (\n) in log messages
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jun 22 21:51:13 2009 +0200 (2009-06-22)
changeset 14149bb95fa735ac
parent 1413 084d38788c1d
child 1415 f1ce1411d671
[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...).
scripts/functions
     1.1 --- a/scripts/functions	Thu Jun 18 18:55:07 2009 +0200
     1.2 +++ b/scripts/functions	Mon Jun 22 21:51:13 2009 +0200
     1.3 @@ -79,7 +79,7 @@
     1.4      if [ $# -eq 0 ]; then
     1.5          cat -
     1.6      else
     1.7 -        echo "${@}"
     1.8 +        printf "${@}\n"
     1.9      fi |( IFS="${CR}" # We want the full lines, even leading spaces
    1.10            _prog_bar_cpt=0
    1.11            _prog_bar[0]='/'