mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
POSIX does permit ${10}, ${11}, etc. - https://github.com/koalaman/shellcheck/issues/621
@@ -20,8 +20,6 @@ For legacy reasons, `$10` is interpreted as the variable `$1` followed by the li
|
||||
|
||||
Curly braces are needed to tell the shell that both digits are part of the parameter expansion.
|
||||
|
||||
Please note that accessing any positional parameters beyond `$9` using `${num}` is non-POSIX.
|
||||
|
||||
### Exceptions
|
||||
|
||||
If you wanted the trailing digits to be literal, `${1}0` will make this clear to both humans and shellcheck.
|
||||
|
Reference in New Issue
Block a user