Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

echo without trailing space incompatibility

Jun
12
0
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
 
Back
Top