-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1010
koalaman edited this page Jul 11, 2014
·
13 revisions
for f in *; do echo "$f" done
for f in *; do echo "$f"; done
(An explanation of why the code is problematic and how the correct code is an improvement)
If you're intentionally using done
as a literal, you can quote it to make this clear to shellcheck and human readers, e.g. instead of echo I am done
, use echo "I am done"
.