summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-03 14:37:25 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-03 14:37:25 (EDT)
commita685526ce90bd376af4abdc567cdbb3bfdc0426f (patch)
tree57a00ac429c8bdf5b332627167ba62304644ebb3 /lib
parente43b58ef9add02ed73131c0130eaa3b857326b3d (diff)
Print informational messages to STDERR.
Diffstat (limited to 'lib')
-rw-r--r--lib/output.sh9
1 files changed, 3 insertions, 6 deletions
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
}