-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2042
Vidar Holen edited this page Oct 20, 2022
·
1 revision
for f in foo,bar,baz
do
echo "$f"
done
for f in foo bar baz
do
echo "$f"
done
ShellCheck found a for
loop where the items appeared to be delimited by commas. These will be treated as literal commas. Use spaces instead.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!