On Mon, Apr 24, 2017 at 7:44 AM, Greg Wooledge <wool...@eeg.ccf.org> wrote: [...] > The outer (( )) in the C-style for loop already create an arithmetic > expression context. You don't need to use $(( )) inside them. You can > simply write: > > for (( INDEX=0; INDEX<10-${#V_NAME};; INDEX++ ))
I think this is just to show the bug. i.e. these two should do the same: dualbus@debian:~$ bash -c 'for (( ; $(($(:))); )); do :; done' bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `for (( ; $(($(:))); )); do :; done' dualbus@debian:~$ bash -c 'for (( ; $((`:`)); )); do :; done'