# HG changeset patch # User Franz Glasner # Date 1727194830 -7200 # Node ID b1e26b95604177221d08e290fe3b087296f9b806 # Parent be8dce486af6becd03d5b5e79093e8303eb0b28e common.subr: FIX: err() and fatal() now really out their output to stderr. It was documented to output to stderr, but really the output went to stdout. diff -r be8dce486af6 -r b1e26b956041 share/local-bsdtools/common.subr --- a/share/local-bsdtools/common.subr Tue Sep 24 18:17:50 2024 +0200 +++ b/share/local-bsdtools/common.subr Tue Sep 24 18:20:30 2024 +0200 @@ -37,7 +37,7 @@ else _ec=1 fi - printf "%s: ERROR: %s\\n" "$0" "$*" + printf "%s: ERROR: %s\\n" "$0" "$*" 1>&2 exit "${_ec}" } @@ -54,7 +54,7 @@ #: The name of the script is prepended to the error message always. #: err() { - printf "%s: ERROR: %s\\n" "$0" "$*" + printf "%s: ERROR: %s\\n" "$0" "$*" 1>&2 return 0 }