mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1067 (markdown)
@@ -53,11 +53,7 @@ echo "$varFoo"
|
|||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
`var$n=value` is not a valid way of assigning to a dynamically created variable name in any shell. Please use one of the other methods to assign to names by expanded string. [Wooledge BashFaq #6](https://mywiki.wooledge.org/BashFAQ/006)n="Foo"
|
`var$n=value` is not a valid way of assigning to a dynamically created variable name in any shell. Please use one of the other methods to assign to names by expanded string. [Wooledge BashFaq #6](https://mywiki.wooledge.org/BashFAQ/006) has significantly more information on the subject.
|
||||||
read -r "var$n" << EOF
|
|
||||||
hello
|
|
||||||
EOF
|
|
||||||
has significantly more information on the subject.
|
|
||||||
|
|
||||||
|
|
||||||
### Exceptions:
|
### Exceptions:
|
||||||
|
Reference in New Issue
Block a user