From 4cd607512bc7fbd61c94f7f15c7affe986a1cbe8 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 22 Jun 2009 21:51:13 +0200 Subject: [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...). diff --git a/scripts/functions b/scripts/functions index 738b400..546f22d 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]='/' -- cgit v0.10.2-6-g49f6