I wonder whether it would be possible to add a simple catch-all command
that would encompass a set of options that can't be defaults but that
make writing shell scripts easier, e.g. set -euo pipefail, nullglob,
inherit_errexit, extglob, assoc_expand_once, and various other settings.

It's annoying to enable all these settings individually, but enabling
them by default would break existing scripts.  How about something like
"shopt -s bash2025" that would succinctly set these options all at once
so that script writers can more easily opt into modern behavior?

Reply via email to