samintz
Scott Mintz
- May
- 1,590
- 27
I have a foo.BTM script containing:
If I invoke it as:
It spits out /n /e correctly. However, if I invoke it as:
TCC hangs. Ctrl+C/Ctrl+Break do nothing. I expected the above code to iterate over the stringset and display /n /e. I can work around it by quoting the stringset, but then I have to unquote everything before using the loop variable.
TCC 15.01.39 x64 Windows 7 [Version 6.1.7601]
Code:
do i in /L %*
if not %@index[%i,/] == -1 echos ` `%i
enddo
If I invoke it as:
Code:
foo a1 /n /e a2 a3
Code:
foo /n /e a1 a2 a3
TCC 15.01.39 x64 Windows 7 [Version 6.1.7601]