summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/output.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/output.sh b/lib/output.sh
index b25fe6f..056c929 100644
--- a/lib/output.sh
+++ b/lib/output.sh
@@ -32,7 +32,8 @@ ob_error()
local format="${1}"
shift 1 || _ob_abort
- printf "$(_ob_get_msg 'output_error_format')\n" "${0##*/}" "${@}" >&2
+ printf "$(printf "$(_ob_get_msg 'output_error_format')" \
+ "${0##*/}" "${format}")\n" "${@}" >&2
return 0
}
@@ -52,7 +53,8 @@ ob_warn()
local format="${1}"
shift 1 || _ob_abort
- printf "$(_ob_get_msg 'output_warning_format')\n" "${0##*/}" "${@}" >&2
+ printf "$(printf "$(_ob_get_msg 'output_warning_format')" \
+ "${0##*/}" "${format}")\n" "${@}" >&2
return 0
}
@@ -71,7 +73,8 @@ ob_info()
local format="${1}"
shift 1 || _ob_abort
- printf "$(_ob_get_msg 'output_info_format')\n" "${0##*/}" "${@}" >&2
+ printf "$(printf "$(_ob_get_msg 'output_info_format')" \
+ "${0##*/}" "${format}")\n" "${@}" >&2
return 0
}