Why does this braced syntax work
$ for (( i=0; i<3; ++i )) { echo $i; }
0
1
2
when the manpage says the syntax is
for (( expr1 ; expr2 ; expr3 )) ; do list ; done
$ bash --version | head -1 # on linux mint virginia (ubuntu jammy)
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
If this is a syntax addition which just has yet to be documented, when was it added?
Asked by jrw32982
(1089 rep)
Mar 7, 2025, 02:26 AM
Last activity: Mar 7, 2025, 06:48 PM
Last activity: Mar 7, 2025, 06:48 PM