$OPTERR
–
Control Errors by getopts
$OPTERR
controls if Bash displays errors generated by the getopts
builtin command.
getopts
does not print errors if $OPTERR
has a value of 0
. Value 1
enables the errors.
Default value: 1.
Links
BashSupport Pro is a Bash IDE with support for $OPTERR – try it now!