On Mon, Jul 04, 2022 at 09:33:28PM +0300, Yair Lenga wrote: > Thanks for taking the time to review my post. I do not want to start a > thread about the problems with ERREXIT. Instead, I'm trying to advocate for > a minimal solution.
Oh? Then I have excellent news. The minimal solution for dealing with the insurmountable problems of errexit is: do not use errexit. It exists only because POSIX mandates it. And POSIX mandates it only because it has been used historically, and historical script would break if it were to be removed or changed.