By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!in CMD.exe
set T=1%
Echo %T%
echos 1%
same in TCC echos only a 1 , not 1%
What is going on?
set T=1%%
echo %T%
Could the parser be enhanced to recognize that a single percent sign % which is not the terminator of a variable name and which is followed by
"whitespace" (including EOL) could not be the start of a variable name nor
function name, and thus it ought to be used literally?
It is, but it would remove a difference from CMD. It would not benefit me
significantly, I have learned to live with current operation.
set T=1%%
echo %T%
Sure I am - when it makes coding for TCC more complicated, esp. when
imitating a change in CMD is not backward compatible.