(typo correction). Thanks for sharing your thoughts. I admit that my goals are significantly less ambitious compared with what you described (lexical scope, etc.). I do not think that it's possible to stretch my proposal to meet all the use cases you describe. For me, the 'errfail' is similar to 'pipefail' option - practical solution for real problems. The suggested 'errfail' in opt-in - anyone that want the old way (errexit) can use it, without saying anything. As you said, errexit was not 'good' solution when conceived, no point in trying to match it (IHMO).
Yair On Tue, Jul 12, 2022 at 6:08 PM Martin D Kealey <mar...@kurahaupo.gen.nz> wrote: > > > On Sun, 10 Jul 2022 at 05:39, Yair Lenga <yair.le...@gmail.com> wrote: > >> Re: command prefaced by ! which is important: >> * The '!' operator 'normal' behavior is to reverse the exit status of a >> command ('if ! check-something ; then ...'). >> > >