$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 是一个 支持 $OPTERR 的 Bash 集成开发工具 – 马上试用!