mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2043 (markdown)
@@ -33,6 +33,8 @@ To iterate over *words* in a variable, instead of `for var in myvariable`, use
|
||||
|
||||
ShellCheck has detected that your for loop iterates over a single, constant value. This is most likely a bug in your code, caused by you not expanding the value in the way you want.
|
||||
|
||||
You should make sure that whatever you loop over will expand into multiple words.
|
||||
|
||||
### Contraindications
|
||||
|
||||
None.
|
Reference in New Issue
Block a user