By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!I expected TCC to handle this easily. But ...
Code:v:\> set z=2 v:\> for /l %i in (1,1,%@eval[(%z + 4) / 2]) echo %i TCC: Syntax error "@eval[(%z + 4"
> vefatica wrote:
> | ---Quote (Originally by vefatica)---
> || I expected TCC to handle this easily. But ...
> ||
> ||
> || Code:
> || ---------
> || v:\> set z=2
> ||
> || v:\> for /l %i in (1,1,%@eval[(%z + 4) / 2]) echo %i
> || TCC: Syntax error "@eval[(%z + 4"
> || ---------
> | ---End Quote---
>
> Verified here in all versions going back to 6.01.245U. I suspect the
> parser
> looks at the brackets surrounding the function parameters as a
> character-selection wildcard, in which role it is, of course, wrong.
I expected TCC to handle this easily. But ...
Code:v:\> set z=2 v:\> for /l %i in (1,1,%@eval[(%z + 4) / 2]) echo %i TCC: Syntax error "@eval[(%z + 4"
for /l %i in (1,1,%@eval[(%z + 4 %=) / 2]) echo %i
On Sat, 19 Dec 2009 11:04:50 -0600, Steve Fábián <> wrote:
|but
| for %x in ( "ab(c)\*" ) echo %x
|works.
I'm very surprised that quotes protect the paren while being inside a function doesn't.
- Vince