Re: [bug] Command substitutions within C-style for loops. Semicolon causes error.

2011-10-29 Thread Chet Ramey
On 10/29/11 1:21 AM, Dan Douglas wrote: > It seems the Bash parser can't distinguish between the semicolon as a > command separator list operator, and the arithmetic context delimiter of > the C-style for loop. I realize this construct isn't particularly useful. > ksh93 and zsh handle it as expecte

[bug] Command substitutions within C-style for loops. Semicolon causes error.

2011-10-28 Thread Dan Douglas
It seems the Bash parser can't distinguish between the semicolon as a command separator list operator, and the arithmetic context delimiter of the C-style for loop. I realize this construct isn't particularly useful. ksh93 and zsh handle it as expected, but in Bash it causes a syntax error on my sy