-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1137
Joachim Ansorg edited this page Oct 31, 2022
·
2 revisions
for (i=0; i<10; i++))
do
echo $i
done
for ((i=0; i<10; i++))
do
echo $i
done
ShellCheck found an arithmetic for ((;;))
expression where either the ((
or the ))
did not come as a pair. Make sure to use (( ))
and not ( )
.
None.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!