-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2258
Rushen Wang edited this page Sep 9, 2024
·
1 revision
for f in foo, bar, baz
do
echo "$f"
donefor f in foo bar baz
do
echo "$f"
doneor
for f in "foo," "bar," "baz,"
do
echo "$f"
doneShellCheck found a for loop where the items appear to be separated by commas. These will be treated as literal commas. If the commas are part of the value, enclose them in quotes, or remove them.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!