From d1af1c13d06db065153d60f4b01a711a661da906 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Tue, 29 Jul 2025 10:52:22 +0900 Subject: [PATCH] Updated SC2213 (markdown) --- SC2213.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2213.md b/SC2213.md index 3f148fe..9ef44bf 100644 --- a/SC2213.md +++ b/SC2213.md @@ -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