Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

_DO_LOOP not reset when DO is interrupted

$
0
0
This is mostly a question and maybe a feature request.

Below, the first DO was interrupted; the second was not. After the second DO, _DO_LOOP has the value from the interrupted DO. How does that happen?

Code:
v:\> do i=1 to 1000000000 ( echo. > nul )
^C
v:\> echo %_do_loop
5943

v:\> do i=1 to 10 ( echo. > nul )

v:\> echo %_do_loop
5943

Feature request: Could _DO_LOOP, outside any DO loops, be made to always have the vaule from the last (outermost) DO loop (successfully completed or...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles