log functions: fix CT_DoLog and CT_DoExecLog
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 06 16:49:20 2009 +0200 (2009-09-06)
changeset 1516df99f43e9db7
parent 1515 545179329bc5
child 1517 9a2838d971d4
log functions: fix CT_DoLog and CT_DoExecLog

$@ and $* are different when in double quotes; use $* to print the message.
scripts/functions
     1.1 --- a/scripts/functions	Sun Sep 06 11:47:40 2009 +0200
     1.2 +++ b/scripts/functions	Sun Sep 06 16:49:20 2009 +0200
     1.3 @@ -79,7 +79,7 @@
     1.4      if [ $# -eq 0 ]; then
     1.5          cat -
     1.6      else
     1.7 -        printf "${@}\n"
     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]='/'
    1.12 @@ -116,7 +116,7 @@
    1.13  CT_DoExecLog() {
    1.14      local level="$1"
    1.15      shift
    1.16 -    CT_DoLog DEBUG "==> Executing: '${@}'"
    1.17 +    CT_DoLog DEBUG "==> Executing: '${*}'"
    1.18      "${@}" 2>&1 |CT_DoLog "${level}"
    1.19  }
    1.20