- Jul
- 534
- 10
Perhaps there's some holistic reason why this isn't a bug... That always seems to be the case.
But script execution is being halted without finishing AND without setting any kind of errorlevel....
Execution simply stops when repeat is given a -1 [which can be a result of various code mistakes when creating spacing text]:
No error message. Not even the errorlevel that is set when an internal command fails [my errorlevel.bat checks all this]. We never get to "jingle bells"
I'm sure at the very least this is meant to set an errorlevel on fail ... But stopping script execution instead of displaying an error message and continuing definitely feel s like a bad bug.
But script execution is being halted without finishing AND without setting any kind of errorlevel....
@echo off
echo Alpha
echo %@REPEAT[X,1] for all!
echo Beta
echo %@REPEAT[X,0] for all!
echo Omega
echo %@REPEAT[X,-1] for all!
echo Jingle bells?
Execution simply stops when repeat is given a -1 [which can be a result of various code mistakes when creating spacing text]:
No error message. Not even the errorlevel that is set when an internal command fails [my errorlevel.bat checks all this]. We never get to "jingle bells"
I'm sure at the very least this is meant to set an errorlevel on fail ... But stopping script execution instead of displaying an error message and continuing definitely feel s like a bad bug.