[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: question about sound



On Thu, Aug 18, 2022 at 11:13:11PM -0500, David Wright wrote:
> The attraction of a one-liner is partly because of screens
> being around four times wider than high (characterwise).
> Wouldn't it be nice if bash had Perl's die ….

Some people put a die() function in their scripts, and then use it.

die() { printf >&2 '%s\n' "$*"; exit 1; }

Or variants thereof.  There are almost as many variations as there are
shell programmers.


Reply to: