From mboxrd@z Thu Jan 1 00:00:00 1970 From: torek@torek.net (Chris Torek) Date: Tue, 19 Sep 2017 12:21:45 -0700 Subject: [TUHS] Happy birthday, Dennis Ritchie! [ really sun vs dec/apollo --> X and NeWS ] In-Reply-To: Your message of "Tue, 19 Sep 2017 14:09:06 -0400." <1505844546.1334583.1111457456.3BAC6336@webmail.messagingengine.com> Message-ID: <201709191921.v8JJLjKn049984@elf.torek.net> >BSD's err/warn family is a further refinement on this - it allows >format/arguments, as I complained about in another post ... Yes, which is why I pushed for having something like this. The final implementation (err, errx, warn, warnx) is not quite what I had suggested (I had an error-exit-code that, if 0, meant this was a warning, i.e., don't exit) but the essence is all there. >and lets you specify what file to send output to, It does now. That was not in the original. It's a good idea though. >and the existence of err vs warn lets you avoid having >exit as a separate step. I still like my "exit code" argument with zero for warn, since it pushes one towards a nonzero exit for all errors. Chris