WAD Unknown Command?

samintz

Scott Mintz
May 20, 2008
1,272
11
Solon, OH, USA
#1
I was typing and accidentally hit Enter before I was done and ended up with a command line similar to this:
Code:
I=3
That seems to act like a REM statement or something. No errors. No output. It just gave me back the prompt.
Something about the equals sign causes that behavior. Just typing 'I=' does the same thing.
Is that expected?

TCC 20.00.15 x64 Windows 7 [Version 6.1.7601]
TCC Build 15 Windows 7 Build 7601 Service Pack 1
 

rconn

Administrator
Staff member
May 14, 2008
10,506
94
#2
This is a feature, not a bug.

From the "What's New in v19":

If the first argument on a command line is in the format "env_var=value command options" (and env_var=value doesn't match an external command) then TCC will set the specified environment variable to the value, execute the command, and then remove the variable.​