I've attached a batch file that is causing problems under TCMD. The file does not set variable VAR as expected; the output is:
****
**
***
If I do nothing more than uncomment the 'echo HERE' line at line 11, the output changes to
HERE
****
** aaa
***
I suspect the problem lies in the format to the SET VAR command at line 10.
This SET "VAR=VAL" command, with the enclosing quotes, is a common construct is Microsoft's batch files. (My test file is based on the structure of the :print_vscmd_header in the VsDevCmd.bat file in Visual Studio 17.) This same construct is used in several places in MSVS's batch files.
It is also used in several places in Anaconda's python virtual environment scripts.
If I'm correct in that the problem is caused by the placement of the quotes in the SET command, could you add support for it? In earlier versions of MSVS, I think I needed to change just one place in MS's batch files to get it to work under TCMD. But with the latest release of MSVS, it is much more of a problem.
NOTE: I categorized this as a bug, because even if you did not intend to support the SET "VAR=VAL" construct; simply adding an echo should not change the variable's value.
****
**
***
If I do nothing more than uncomment the 'echo HERE' line at line 11, the output changes to
HERE
****
** aaa
***
I suspect the problem lies in the format to the SET VAR command at line 10.
This SET "VAR=VAL" command, with the enclosing quotes, is a common construct is Microsoft's batch files. (My test file is based on the structure of the :print_vscmd_header in the VsDevCmd.bat file in Visual Studio 17.) This same construct is used in several places in MSVS's batch files.
It is also used in several places in Anaconda's python virtual environment scripts.
If I'm correct in that the problem is caused by the placement of the quotes in the SET command, could you add support for it? In earlier versions of MSVS, I think I needed to change just one place in MS's batch files to get it to work under TCMD. But with the latest release of MSVS, it is much more of a problem.
NOTE: I categorized this as a bug, because even if you did not intend to support the SET "VAR=VAL" construct; simply adding an echo should not change the variable's value.