Detecting TCC ?

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
4,689
106
Albuquerque, NM
prospero.unm.edu
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.
 

Similar threads