From 4a4a01dc5e68d4e99104ca1c991f29c1123ebc8c Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 05 2011 15:37:28 +0000 Subject: Update cli_printMessage.sh. --- diff --git a/Scripts/Functions/cli_printMessage.sh b/Scripts/Functions/cli_printMessage.sh index 260cf00..0bc682d 100755 --- a/Scripts/Functions/cli_printMessage.sh +++ b/Scripts/Functions/cli_printMessage.sh @@ -57,7 +57,7 @@ function cli_printMessage { eval set -- "$ARGUMENTS" # Initialize message variable locally using non-option arguments. - local MESSAGE=$(echo $@ | sed -r 's!^.*[[:space:]]*--[[:space:]]+!!') + local MESSAGE=$(echo $@ | sed -r 's!^(.*[[:space:]]*--[[:space:]]+)?!!') # Reverse character codification performed when the list of # arguments wast built at cli_doParseArgumentsReDef.sh.