Skip to content

Add option to report an error if user accesses undefined variable like bash 'set -u' #76

@birchb1024

Description

@birchb1024

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions