Detecting TCC ?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
What's the best way to determine if TCC is the shell running a batch file? I'm using something like this:
if not (%@EVAL[1+1]%)==(2) CMD command
or
if (%@EVAL[1+1]%)==(2) TCC command
Is that my best bet? I was going to check %_VERSION, but it is not in LE...
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,376
39
Albuquerque, NM
prospero.unm.edu
#2
What's the best way to determine if TCC is the shell running a batch file? I'm using something like this:
if not (%@EVAL[1+1]%)==(2) CMD command
or
if (%@EVAL[1+1]%)==(2) TCC command
Is that my best bet? I was going to check %_VERSION, but it is not in LE...
I've often used something like IF 01 == 1 ... In JP shells, that's a numeric comparison and true; in Microsoft's, it's a string comparison and false.