$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.

BashSupport Pro is a Bash IDE with support for $OPTERRtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal