On 07/06/12 06:11, Akim Demaille wrote: One other tiny nit that is helpful in a die() function: It isn't necessarily true that "die" always gets invoked from the main process. If it gets invoked from a subprocess for any of a variety of reasons, this:
+die() { warn_ "$@"; exit 1; } won't work. I use this (more or less) as a standard template: readonly progpid=$$ die() { warn_ "$@" kill -9 $progpid exit 1 } 1>&2