From: martin f. krafft Date: Thu, 25 Oct 2007 21:39:41 +0000 (+0200) Subject: Add info() and warning() akin to error() X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/398033ad68e4cfd347d57a3cbb903dae17ace0f4?ds=sidebyside Add info() and warning() akin to error() They don't exist but print to stderr. --- diff --git a/mr b/mr index c0f3e83..a8d864f 100755 --- a/mr +++ b/mr @@ -936,6 +936,12 @@ lib = echo "mr: $@" >&2 exit 1 } + warning() { + echo "mr (warning): $@" >&2 + } + info() { + echo "mr: $@" >&2 + } hours_since() { if [ -z "$1" ] || [ -z "$2" ]; then error "mr: usage: hours_since action num"