From 5f0876d99d8c213c095cf61b70bb2b84f78def3d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 13 Nov 2008 11:00:42 -0300 Subject: Adding missing arguments to printf (l10n disabled) Otherwise the extra arguments would be discarded, e.g. Echo "Loading defaults from %s" "${DEFAULTS_DIR}" --- functions/echo.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/functions/echo.sh b/functions/echo.sh index 3413593..9d828b8 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -14,7 +14,7 @@ Echo () if [ "${_L10N}" = "false" ] then - printf "${STRING}\n" + printf "${STRING}\n" "${@}" else printf "$(eval_gettext "${STRING}")" "${@}"; echo; fi @@ -29,7 +29,7 @@ Echo_debug () if [ "${_L10N}" = "false" ] then - printf "D: ${STRING}\n" + printf "D: ${STRING}\n" "${@}" else printf "D: $(eval_gettext "${STRING}")" "${@}"; echo; fi @@ -45,7 +45,7 @@ Echo_debug_running () if [ "${_L10N}" = "false" ] then - printf "D: ${STRING}" + printf "D: ${STRING}" "${@}" else printf "D: $(eval_gettext "${STRING}")" "${@}" fi @@ -73,7 +73,7 @@ Echo_error () if [ "${_L10N}" = "false" ] then - printf " ${STRING}" >&2 + printf " ${STRING}" "${@}" >&2 else (printf " $(eval_gettext "${STRING}")" "${@}";) >&2 fi @@ -95,7 +95,7 @@ Echo_message () if [ "${_L10N}" = "false" ] then - printf " ${STRING}\n" + printf " ${STRING}\n" "${@}" else printf " $(eval_gettext "${STRING}")" "${@}"; echo; fi @@ -118,7 +118,7 @@ Echo_message_running () if [ "${_L10N}" = "false" ] then - printf " ${STRING}" + printf " ${STRING}" "${@}" else printf " $(eval_gettext "${STRING}")" "${@}"; fi @@ -141,7 +141,7 @@ Echo_verbose () if [ "${_L10N}" = "false" ] then - printf "I: ${STRING}\n" + printf "I: ${STRING}\n" "${@}" else printf "I: $(eval_gettext "${STRING}")" "${@}"; echo; fi @@ -157,7 +157,7 @@ Echo_verbose_running () if [ "${_L10N}" = "false" ] then - printf "I: ${STRING}" + printf "I: ${STRING}" "${@}" else printf "I: $(eval_gettext "${STRING}")" "${@}"; fi @@ -185,7 +185,7 @@ Echo_warning () if [ "${_L10N}" = "false" ] then - printf " ${STRING}\n" + printf " ${STRING}\n" "${@}" else printf " $(eval_gettext "${STRING}")" "${@}"; echo; fi -- cgit v1.0