diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-06 16:49:20 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-06 16:49:20 +0200 |
commit | 9ce20533526a29a950df2a41c31eccbe611d655d (patch) | |
tree | e728c6d06e194a324e3ba8d6fd35a9ec10c9cbdb /scripts/functions | |
parent | b7d11da128bf9d1ec2a7623d928bb5011d72c2a1 (diff) | |
download | crosstool-ng-9ce20533526a29a950df2a41c31eccbe611d655d.tar.gz crosstool-ng-9ce20533526a29a950df2a41c31eccbe611d655d.tar.bz2 crosstool-ng-9ce20533526a29a950df2a41c31eccbe611d655d.zip |
log functions: fix CT_DoLog and CT_DoExecLog
$@ and $* are different when in double quotes; use $* to print the message.
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index ae584c4c..62a2f993 100644 --- a/scripts/functions +++ b/scripts/functions @@ -79,7 +79,7 @@ CT_DoLog() { if [ $# -eq 0 ]; then cat - else - printf "${@}\n" + printf "${*}\n" fi |( IFS="${CR}" # We want the full lines, even leading spaces _prog_bar_cpt=0 _prog_bar[0]='/' @@ -116,7 +116,7 @@ CT_DoLog() { CT_DoExecLog() { local level="$1" shift - CT_DoLog DEBUG "==> Executing: '${@}'" + CT_DoLog DEBUG "==> Executing: '${*}'" "${@}" 2>&1 |CT_DoLog "${level}" } |