I think I found a bug in the way the CMDVariables option effects parameters, be it in TCC/LE or my understanding of how parameters are specified. It's not a big deal for me, but I wanted to share to see if it is a bug or if somebody here can help me understand what's going on.
To see the problem, take this batch script:
And run it with CMDVariables on and off. I get this output:
I came across this problem with a batch file I was running using TCC/LE ver 13.06.77, and reading these forums I learned about the CMDVariables option. The problem boiled down to use of the %programfiles(x86)% environment variable, so turning CMDVariables on let TCC/LE handle the parens in the variable name.
With the option on, some other batch file started to break. These are all batch files that were written for Windows' cmd. One in particular is the vcvars32.bat some of you may know from Visual Studio.
To see the problem, take this batch script:
Code:
echo off
echo The param is %1
echo The param is %1%
Code:
CMDVariables=yes
D:\>test.bat ohai
echo off
The param is %1
The param is ohai%
CMDVariables=no, or when ran in CMD
D:\>test.bat ohai
echo off
The param is ohai
The param is ohai
I came across this problem with a batch file I was running using TCC/LE ver 13.06.77, and reading these forums I learned about the CMDVariables option. The problem boiled down to use of the %programfiles(x86)% environment variable, so turning CMDVariables on let TCC/LE handle the parens in the variable name.
With the option on, some other batch file started to break. These are all batch files that were written for Windows' cmd. One in particular is the vcvars32.bat some of you may know from Visual Studio.