summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-11 17:15:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-11 17:19:10 (EDT)
commit9d220efaa381e9ea46bb17ffb9d977253c5ef1b1 (patch)
tree36f4ec9dcf4ecbe6ddfb6e94b7a3849a86d707da
parentc9b56e3a4db6bf8c4595ca5ea161289678ea2865 (diff)
error(), warn(), info(): Print args to stderr.
-rw-r--r--NEWS1
-rw-r--r--lib/output.sh6
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 038a315..ff4dba4 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Released: ????-??-??
Changes in this release:
* The process-incoming command now removes processed files.
+ * All output is now sent to stderr. (Previously, only some of it was.)
ProteanOS Archive Manager version 1.0.0
---------------------------------------
diff --git a/lib/output.sh b/lib/output.sh
index 9c0cf85..7a7888e 100644
--- a/lib/output.sh
+++ b/lib/output.sh
@@ -27,7 +27,7 @@ error()
shift 2
printf '%s: Error: ' "${0##*/}" >&2
- printf "${fmt}\n" "${@}"
+ printf "${fmt}\n" "${@}" >&2
fini
@@ -40,7 +40,7 @@ warn()
shift 1
printf '%s: Warning: ' "${0##*/}" >&2
- printf "${fmt}\n" "${@}"
+ printf "${fmt}\n" "${@}" >&2
return 0
}
@@ -51,7 +51,7 @@ info()
shift 1
printf '%s: ' "${0##*/}" >&2
- printf "${fmt}\n" "${@}"
+ printf "${fmt}\n" "${@}" >&2
return 0
}