Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TCC/LE's for command does not correctly handle filenames with special characters.

Apr
8
0
For example

for /f “usebackq” %f in (“Take Command Reinvents the Windows Console and CMD.EXE [IeAPFpFP3_k].url”) echo %f

The contents of the file are displayed correctly under both Take Command and CMD, but under TCC/LE 14 the result is that
ECHO is OFF

Only if you remove the [ and ] characters from the filename, you can get the correct result.
Is this a bug or a setup probrom?

Translated with DeepL.com (free version)
 
You're running into extended wildcards. TCC/LE is not expecting to see wildcards in this situation.

This behavior was changed in later versions, but TCC/LE is no longer being maintained. No fix is forthcoming for TCC/LE. Either rewrite to use a DO loop, or upgrade to a later version.
 
Back
Top