- May
- 239
- 2
I have some batch files using here-document redirection in switch case commands.
This used to work in v15 but fails in v20. I got v20 to work by extracting the case commands to a separate sub-routine.
Is this something that should be fixed in TCC or a (new) limitation of the switch statement?
This works in v15 but fails in v20.
This works in both v15 and v20.
This used to work in v15 but fails in v20. I got v20 to work by extracting the case commands to a separate sub-routine.
Is this something that should be fixed in TCC or a (new) limitation of the switch statement?
Code:
@echo off
switch s
case s
wc.exe << endinput
1
2
3
endinput
endswitch
This works in v15 but fails in v20.
Code:
@echo off
switch s
case s
gosub runwc
endswitch
quit
:runwc
wc.exe << endinput
1
2
3
endinput
return
This works in both v15 and v20.