mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2051 (markdown)
@@ -1,4 +1,4 @@
|
||||
## Bash doesn't support variables in brace expansions.
|
||||
## Bash doesn't support variables in brace range expansions.
|
||||
|
||||
### Problematic code:
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
### Rationale:
|
||||
|
||||
In Bash, brace expansion happens before variable expansion. This means that brace expansion will never account for variables.
|
||||
In Bash, brace expansion happens before variable expansion. This means that brace expansion will not account for variables.
|
||||
|
||||
Use an arithmetic for loop instead.
|
||||
|
||||
|
Reference in New Issue
Block a user