<
JAA>
`for ((;cond;)); do` is the same as `while ((cond)); do`.
<
JAA>
And `for ((;;))` is an infinite loop like `while :`.
<
JAA>
`for ((;;something))` is similar to `while :; do ...; ((something)); done`.
<
JAA>
You can do a lot of fun things with `for ((`. :-)
panekj has joined ##bash-crimes
panekj has quit [Remote host closed the connection]
panekj has joined ##bash-crimes
<
spiderella>
Did you know that in for loops you can replace do done with { }
<
jn>
does that work with then/fi too?
<
spiderella>
Only with for
<
spiderella>
Not even while
<
spiderella>
But it makes sense because in if and while that would need to be part of the condition
<
spiderella>
Whereas in for it's clearly separate