# HG changeset patch # User "Yann E. MORIN" # Date 1227915339 0 # Node ID ad280facf7ccbb93ec1ee93b15dae4e577bba64a # Parent c70053450b4ee336782feceeca5b80c5d6e37a99 Backport #1248 from trunk: - Make it easy to use \n (fixes missing 'n' at the end of on log lines) /branches/1.3/scripts/functions | 5 4 1 0 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff -r c70053450b4e -r ad280facf7cc scripts/functions --- a/scripts/functions Tue Nov 25 19:15:34 2008 +0000 +++ b/scripts/functions Fri Nov 28 23:35:39 2008 +0000 @@ -52,6 +52,9 @@ CT_LOG_LEVEL_DEBUG=4 CT_LOG_LEVEL_ALL=5 +# Make it easy to use \n +CR=$(printf "\n") + # A function to log what is happening # Different log level are available: # - ERROR: A serious, fatal error occurred @@ -76,7 +79,7 @@ cat - else echo "${@}" - fi |( IFS="\n" # We want the full lines, even leading spaces + fi |( IFS="${CR}" # We want the full lines, even leading spaces _prog_bar_cpt=0 _prog_bar[0]='/' _prog_bar[1]='-'