diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-06-22 21:51:13 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-06-22 21:51:13 +0200 |
commit | 4cd607512bc7fbd61c94f7f15c7affe986a1cbe8 (patch) | |
tree | 0e5d80a441e7f5bce7fd5ca2eaee0a4d5fb0bc2e | |
parent | 3ffe23e274d4739e0c1356f6baae3ebeb753471c (diff) | |
download | crosstool-ng-4cd607512bc7fbd61c94f7f15c7affe986a1cbe8.tar.gz crosstool-ng-4cd607512bc7fbd61c94f7f15c7affe986a1cbe8.tar.bz2 crosstool-ng-4cd607512bc7fbd61c94f7f15c7affe986a1cbe8.zip |
[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...).
-rw-r--r-- | scripts/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 738b4002..546f22d0 100644 --- a/scripts/functions +++ b/scripts/functions @@ -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]='/' |