On Mon, May 22, 2023 at 07:01:18AM +1000, Martin D Kealey wrote:
> [...] and treating "unset" as a fatal error is not the experience that
> programmers have using other scripting languages, and is therefore, I would
> argue, not something that should be added to the Shell, and certainly not
> as a quiet change to the existing `set -u`.

Just for the record, Tcl's unset command generates an error if you use
it on a nonexistent variable (which includes a nonexistent array
element).  But it also offers a -nocomplain option, which you may use
if you want to unset something that may or may not currently exist.

(End tangent.)

Reply via email to