bug-bash
[Top][All Lists]
Advanced

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

Re: Revisiting Error handling (errexit)


From: Martin D Kealey
Subject: Re: Revisiting Error handling (errexit)
Date: Fri, 8 Jul 2022 22:30:48 +1000

The old errexit explicitly exempts any command prefaced by ! which is
important so that one can write ! (( x++ )) without it blowing up when x is
0 and without paying the penalty for  "|| true".
Does this new proposal honour that?

Aside from that, I still think that yet another global setting is
perpetuating the "wrong direction"; "local -" has the same dynamic scope as
any other "local", which means magic action at a difference, and makes
brittle code that can abort unexpectedly in production.

-Martin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]