mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Fix caps and use shorter URL form for Stack Overflow link
@@ -22,7 +22,7 @@ Curly braces are needed to tell the shell that both digits are part of the param
|
|||||||
|
|
||||||
### Exceptions
|
### Exceptions
|
||||||
|
|
||||||
If you wanted the trailing digits to be literal, `${1}0` will make this clear to both humans and shellcheck.
|
If you wanted the trailing digits to be literal, `${1}0` will make this clear to both humans and ShellCheck.
|
||||||
|
|
||||||
In `dash`, `$10` is ([wrongly](https://gnu.org/s/autoconf/manual/html_node/Shell-Substitutions.html)) interpreted as `${10}`, so some 'reversed' care should also be taken:
|
In `dash`, `$10` is ([wrongly](https://gnu.org/s/autoconf/manual/html_node/Shell-Substitutions.html)) interpreted as `${10}`, so some 'reversed' care should also be taken:
|
||||||
|
|
||||||
@@ -34,6 +34,5 @@ dash -c 'set a b c d e f g h i j; echo $10 ${1}0' # WRONG: j a0
|
|||||||
### Related resources:
|
### Related resources:
|
||||||
|
|
||||||
* [BashFaq: How can I access positional parameters after $9?](https://mywiki.wooledge.org/BashFAQ/025)
|
* [BashFaq: How can I access positional parameters after $9?](https://mywiki.wooledge.org/BashFAQ/025)
|
||||||
* [StackOverflow: How to handle more than 10 parameters in shell
|
* [StackOverflow: How to handle more than 10 parameters in shell](https://stackoverflow.com/q/4912733)
|
||||||
](https://stackoverflow.com/questions/4912733/how-to-handle-more-than-10-parameters-in-shell)
|
|
||||||
* [Autoconf Manual: Shell Substitutions](https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/html_node/Shell-Substitutions.html) - documents some non-POSIX older shells too
|
* [Autoconf Manual: Shell Substitutions](https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/html_node/Shell-Substitutions.html) - documents some non-POSIX older shells too
|
||||||
|
Reference in New Issue
Block a user