From a685526ce90bd376af4abdc567cdbb3bfdc0426f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Oct 2012 14:37:25 -0400 Subject: Print informational messages to STDERR. --- diff --git a/lib/output.sh b/lib/output.sh index 6f346fe..a5b8b11 100644 --- a/lib/output.sh +++ b/lib/output.sh @@ -22,9 +22,6 @@ _OB_MESSAGES_SH=true ob_use locale -# TODO: Which of these should print to the standard error stream – just -# ob_error() and ob_warn()? - ob_error() { printf '%s: Error: ' "${0##*/}" >&2 @@ -53,9 +50,9 @@ ob_info() return 125 fi - printf '%s: ' "${0##*/}" - printf "${@}" - printf '\n' + printf '%s: ' "${0##*/}" >&2 + printf "${@}" >&2 + printf '\n' >&2 return 0 } -- cgit v0.9.1