- Sep
- 3
- 0
Hi,
I've found an error while executing the Visual Studio VsDevCmd.bat on TCC LE 14.00.9 x64 Windows 10 [Version 6.3.19041].
The error happens while executing a line like this:
But it can be easily reproduced just typing this command
and noting that the %= character combinations gets replaced by the ^ character, thus echoing something like
Note also that the problem only occurs when using double quotes. Otherwise, executing the command like this
Will produce the expected output:
Or, if you keep the quotes but separate the characters like this:
there is no substitution:
Is that substitution simply a bug or is it expected as part of some functionality (couldn't find it)? In case it is an expected behavior, how can it be avoided? Some escaping? Can't use the blank space as a work around because it also gets included in the output and would get the original set command invalid.
Regards,
I've found an error while executing the Visual Studio VsDevCmd.bat on TCC LE 14.00.9 x64 Windows 10 [Version 6.3.19041].
The error happens while executing a line like this:
set "%__NORMALIZE_VAR%=%__NORMALIZE_VAR_CONTENT:~0,-1%"
But it can be easily reproduced just typing this command
echo "%os%=xx"
and noting that the %= character combinations gets replaced by the ^ character, thus echoing something like
"Windows_NT^xx"
Note also that the problem only occurs when using double quotes. Otherwise, executing the command like this
echo %os%=xx
Will produce the expected output:
Windows_NT=xx
Or, if you keep the quotes but separate the characters like this:
echo "%os% =xx"
there is no substitution:
"Windows_NT =xx"
Is that substitution simply a bug or is it expected as part of some functionality (couldn't find it)? In case it is an expected behavior, how can it be avoided? Some escaping? Can't use the blank space as a work around because it also gets included in the output and would get the original set command invalid.
Regards,