Charles Dye wrote:
| Originally Posted by TonyT
| in CMD.exe
| set T=1%
| Echo %T%
| echos 1%
| same in TCC echos only a 1 , not 1%
| What is going on?
| If you want a literal percent sign, you need to double it:
| set T=1%%
| echo %T%Otherwise, it's interpreted as the start of a variable or
| function name.
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?