Updated SC2213 (markdown)

Eisuke Kawashima
2025-07-29 10:52:22 +09:00
parent 9c16c265f0
commit d1af1c13d0

@@ -36,7 +36,7 @@ Either add a case to handle the flag, or remove it from the `getopts` option str
ShellCheck may not correctly recognize less canonical uses of `while getopts ..; do case ..;`, such as when modifying the variable before using it:
```
```sh
while getopts "rf-:" OPT; do
if [ "$OPT" = "-" ]; then # long option: reformulate OPT and OPTARG
OPT="${OPTARG%%=*}" # extract long option name