Echo message works without the space?

Code:
TCC  22.00.29 x64   Windows 7 [Version 6.1.7601]

This is not a bug, but I discovered something that is new to me, that is, certain characters can separate;
Code:
Echo message

If the environment variable %abc does not exist;
Code:
@setlocal
@echo off
echo %abc
echo.%abc
echo/%abc
echo:%abc
echo;%abc
echo"%abc
endlocal

With the exception of echo %abc all echo a blank line, instead of ECHO is OFF;
Code:
c:\users\jlc\utils>test
ECHO is OFF






c:\users\jlc\utils>
If %abc is set to a value;
Code:
@setlocal
@echo off
set abc=123
echo %abc
echo.%abc
echo/%abc
echo:%abc
echo;%abc
echo"%abc
endlocal
...the results are;
Code:
c:\users\jlc\utils>test[code]
123
123
123
123
123
123

This works all the way back to 4DOS 8.00

Joe
 
Similar threads
Thread starter Title Forum Replies Date
old coot Spurious errors (triggered by "for" construct?) when adding/removing "echo" lines Support 2
fpefpe How to? command echo in title line/bar Support 2
vefatica @EXECSTR clobbers @ECHO ON Support 2
L WAD ECHO. expansion of non-existent env-vars differs from CMD.exe Support 6
D Does TCC improve CMD's implementation of ECHO? Support 6
E My echo full file name to the clipboard fails now. Support 2
MickeyF how to ECHO in opposite colors? Support 12
T Fixed Echo randomly activated in script Support 4
S How to? ^C echo Support 6
vefatica ECHO is very slow Support 9
J How to? Riddle: How to echo > into a file? Support 7
Alexander How to? how can I use Cyrillic characters in the Echo command? Support 8
jadaml Echo unicode characters from UTF-8 Batch files? Support 1
vefatica WAD DO, ECHO, and trailing whitespace Support 3
nickles WAD echo "%PROGRAMFILES(X86)%" Support 16
J Can you redirect output to printer device with echo? Support 1
M How to? Save and then restore "Echo" status Support 2
T Set 1% then Echo 1% Support 9
M echo %@index[1234,.,-1] return -21 in new version Support 3
Roedy ECHO bug Support 4
T How do you echo lines with special characters to file? Support 4
mfarah Fixed The DATE command produces the wrong error message. Support 1
Joe Caverly OSD Macro Playback Message Support 3
vefatica @REGSETENV not broadcasting message? Support 2
D How to? Skip removing directory (RMDIR) without error message Support 2
vefatica Error message from TOUCH Support 2
S incorrect message at start Cancel batch job 4START.bat ? (Y/N/A) : Support 1
vefatica Why no error message? Support 2
vefatica REGDIR, strange error message Support 7
WadeHatler Just started getting a message about Cloud Storage every time I start TCC 19 Support 3
Stefano Piccardi b32 move /Q writes message Support 1
vefatica WAD Unwanted message boxes Support 19
C Message Board question Support 1
D How to? Suppress error message with dir /h and no files? Support 2
vefatica Message? Support 2
Peter Bratton "externally altered" error message Support 23
Stefano Piccardi how to get error message instead of beep? Support 5
J Uninformative START error message Support 0
C No upgrade message Support 1
R No Error Message when running mklink as limited user Support 3
J ASSOC / FTYPE strange error message Support 3
B "Insert disk"-message displayed 3 times Support 2
T VIEW only works from command line Support 14
D Alias with setdos no longer works Support 21
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
Phileosophos Enumshares works sometimes Support 16
I findstr works in cmd but not in tcc Support 5
Dmitry L. Kobyakov WAD Start /pgm "name.htm" works improperly Support 4
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7

Similar threads