Fixed Echo randomly activated in script

Aug 16, 2008
In the following snippet, echo is randomly activated (in this case on the fifth iteration):
@echo off

do index = 1 to 1000
    :: disable audible beep for input
    option //BeepLength = 0
    echo ``

    echo %index
    delay 1

Loop, index, and delay are just to demonstrate the issue.

This is the latest TCC version.


  • 21-09-_2017_13-42-18.png
    692.3 KB · Views: 86
Aug 16, 2008
It's stripped down from a "shell selector" batch script:
@echo off
setlocal & setdos /g., /x0
on errormsg quit 1
on break quit 1
unalias * & unfunction *

set config_=%@path[%_batchname]%@name[%_batchname].ini

:: disable audible beep for input
option //BeepLength = 0

cls /c
echo Enter shell
echo  [1] TCC
echo  [2] TCC/LE
echo  [3] Cmd
echo  [4] PowerShell
echo  [5] Fish
echo  [6] Zsh
echo  [7] Bash
echo ``

inkey /k"1234567" Shell:  %%selection_

echo ``
iff     %selection_ == 1 then
    gosub READ_CONFIG Tcc

    cls /c
    tcc /q
Aug 16, 2008
"echo ``" s the equivalent of "echo." in TCC according to the documentation. It just echoes an empty line (in case I misinterpreted Rex' question).
Similar threads
Thread starter Title Forum Replies Date
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
Joe Caverly Echo message works without the space? Support 3
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
vefatica TYPE behaving randomly Support 10
S "All the available licenses have been activated." Support 2
P Reinstalled OS and now TCC says "All the available licenses have been activated" Support 10

Similar threads