aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xac-wrapper.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index f9b0857..4e0a765 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -17,8 +17,9 @@
(set -o posix) 2>/dev/null && set -o posix
-warn() { printf "ac-wrapper: $*\n" 1>&2; }
-err() { warn "$@"; exit 1; }
+_stderr() { printf 'ac-wrapper: %s: %b\n' "${argv0}" "$*" 1>&2; }
+warn() { _stderr "warning: $*"; }
+err() { _stderr "error: $*"; exit 1; }
unset IFS
which() {
local p