rc
rc copied to clipboard
Add option to report an error if user accesses undefined variable like bash 'set -u'
Undefined variables or misspelled variables are a common source of bugs. When coding in bash, I always set -u. Really want this in rc. Suggest:
flag u [+|-]
To paraphrase bash:
Treat unset variables other than the special ‘*’ as an error when performing
variable expansion. An error message will be written to the standard error,
and a non-interactive shell will exit.