echo without trailing space incompatibility

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jun 5, 2015
12
0
#1
Hi,
I've found a cmd script (from syncany installation) that uses the following (arguable) syntax:
echo | set /p=hello!
to achieve an echo without trailing carriage return (like tcc's "echos").

This doesn't work on my tcc/le though (TCC LE 14.00.6 x64 Windows 10 [Version 6.3.10240] TCC LE Build 6 Windows 10 Build 10240).

The effect is not drammatic: you just get a dump of all variables instead of intended output; anyway it might be worth to try and replicate cmd's behavior.

On the other hand, this would work on both cmd and tcc:
echo | set /p nocr=hello!

Cheers
Lbit