mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2051 (markdown)
@@ -23,7 +23,7 @@ For integers, use an arithmetic for loop instead. For zero-padded numbers or let
|
||||
from="a" to="m"
|
||||
for c in $(eval "echo {$from..$to}"); do echo "$c"; done
|
||||
|
||||
or more carefully (if `from`/`to` could be user input, or if the brace expansion could have spaces or globs):
|
||||
or more carefully (if `from`/`to` could be user input, or if the brace expansion could have spaces):
|
||||
|
||||
from="a" to="m"
|
||||
while IFS= read -d '' -r c
|
||||
|
Reference in New Issue
Block a user