The following batch file is runned differently by TCC and CMD:
@echo off
if not exist readme.txt (
:echo This is a comment
echo readme.txt does not exist
)
TCC silently ignores the "echo readme.txt does not exist" line (displays nothing) and CMD.exe echoes "readme.txt does not exist" as expected. This is not good for me because now I need to fix all my batch files. The TCC is declared to be fully compatible with CMD and I expected it to run existing batch files just as CMD does. Is it a bug or not? The TCC documentation says that :: can be used to comment out the line but then it must not be declared as fully compatible with CMD.
@echo off
if not exist readme.txt (
:echo This is a comment
echo readme.txt does not exist
)
TCC silently ignores the "echo readme.txt does not exist" line (displays nothing) and CMD.exe echoes "readme.txt does not exist" as expected. This is not good for me because now I need to fix all my batch files. The TCC is declared to be fully compatible with CMD and I expected it to run existing batch files just as CMD does. Is it a bug or not? The TCC documentation says that :: can be used to comment out the line but then it must not be declared as fully compatible with CMD.