$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 ist eine Bash IDE mit Unterstützung für $OPTERR – probieren Sie es aus!