- Jan
- 950
- 19
I have problems with this option. For me it makes no different, if it's enabled or disabled.
I means this ...

So I decide to make the some tests with the following results ...
Example 1
ex1_test-a.cmd:
ex1_test-b.cmd:
Within CMD, I it gives the following results:
cmd /k "c:\users\alpen\downloads\ex1_test-a.cmd":
cmd /k "c:\users\alpen\downloads\ex1_test-b.cmd":
Within TCC, I it gives the following results - REGARDLESS it the option is enabled/disabled:
tcc /k "c:\users\alpen\downloads\ex1_test-a.cmd":
tcc /k "c:\users\alpen\downloads\ex1_test-b.cmd":
Example 2
ex2_test-a.cmd:
ex2_test-b.cmd:
Within CMD, I it gives the following results:
cmd /k "c:\users\alpen\downloads\ex2_test-a.cmd":
cmd /k "c:\users\alpen\downloads\ex2_test-b.cmd":
Within TCC, I it gives the following results - REGARDLESS it the option is enabled/disabled:
tcc /k "c:\users\alpen\downloads\ex2_test-a.cmd":
tcc /k "c:\users\alpen\downloads\ex2_test-b.cmd":
Example 3
ex3_test-a.cmd:
ex3_test-b.cmd:
Within CMD, I it gives the following results:
cmd /k "c:\users\alpen\downloads\ex3_test-a.cmd":
Creates a file in %temp% DIR with string = Hello
cmd /k "c:\users\alpen\downloads\ex3_test-b.cmd":
Within TCC, I it gives the following results - REGARDLESS it the option is enabled/disabled:
tcc /k "c:\users\alpen\downloads\ex3_test-a.cmd":
Creates a file in %temp% DIR with string = Hello
tcc /k "c:\users\alpen\downloads\ex3_test-b.cmd":
Creates a file in %temp% DIR with string = Hello
Is something not correct with this option or do I missunderstand something?
PS: TC 19.0.27 x64 on Win 10 Pro x64
I means this ...


So I decide to make the some tests with the following results ...
Example 1
ex1_test-a.cmd:
Code:
@echo off
setlocal
:: count to 5 storing the results in a variable
set _tst=0
FOR /l %%G in (1,1,5) Do (echo [%_tst%] & set /a _tst+=1)
echo Total = %_tst%
ex1_test-b.cmd:
Code:
@echo off
setlocal EnableDelayedExpansion
:: count to 5 storing the results in a variable
set _tst=0
FOR /l %%G in (1,1,5) Do (echo [!_tst!] & set /a _tst+=1)
echo Total = %_tst%
Within CMD, I it gives the following results:
cmd /k "c:\users\alpen\downloads\ex1_test-a.cmd":
Code:
[0]
[0]
[0]
[0]
[0]
Total = 5
cmd /k "c:\users\alpen\downloads\ex1_test-b.cmd":
Code:
[0]
[1]
[2]
[3]
[4]
Total = 5
Within TCC, I it gives the following results - REGARDLESS it the option is enabled/disabled:
tcc /k "c:\users\alpen\downloads\ex1_test-a.cmd":
Code:
[0]
[1]
[2]
[3]
[4]
Total = 5
tcc /k "c:\users\alpen\downloads\ex1_test-b.cmd":
Code:
[0]
[1]
[2]
[3]
[4]
Total = 5
Example 2
ex2_test-a.cmd:
Code:
@echo off
Setlocal
Set _var=first
Set _var=second& Echo %_var% !_var!
ex2_test-b.cmd:
Code:
@echo off
Setlocal EnableDelayedExpansion
Set _var=first
Set _var=second& Echo %_var% !_var!
Within CMD, I it gives the following results:
cmd /k "c:\users\alpen\downloads\ex2_test-a.cmd":
Code:
first !_var!
cmd /k "c:\users\alpen\downloads\ex2_test-b.cmd":
Code:
first second
Within TCC, I it gives the following results - REGARDLESS it the option is enabled/disabled:
tcc /k "c:\users\alpen\downloads\ex2_test-a.cmd":
Code:
second second
tcc /k "c:\users\alpen\downloads\ex2_test-b.cmd":
Code:
second second
Example 3
ex3_test-a.cmd:
Code:
@echo off
c:
cd %temp%
Setlocal
Set _html=Hello^>World
Echo %_html%
ex3_test-b.cmd:
Code:
@echo off
c:
cd %temp%
Setlocal EnableDelayedExpansion
Set _html=Hello^>World
Echo !_html!
Within CMD, I it gives the following results:
cmd /k "c:\users\alpen\downloads\ex3_test-a.cmd":
Creates a file in %temp% DIR with string = Hello
cmd /k "c:\users\alpen\downloads\ex3_test-b.cmd":
Code:
Hello>World
Within TCC, I it gives the following results - REGARDLESS it the option is enabled/disabled:
tcc /k "c:\users\alpen\downloads\ex3_test-a.cmd":
Creates a file in %temp% DIR with string = Hello
tcc /k "c:\users\alpen\downloads\ex3_test-b.cmd":
Creates a file in %temp% DIR with string = Hello
Is something not correct with this option or do I missunderstand something?
PS: TC 19.0.27 x64 on Win 10 Pro x64