It has been discovered that there is a bug in the if command of high - version 4NT / Take Command.
When the judgment condition is false, the if command will ignore the command separator in the same line after it, that is, it will treat the other multiple commands separated as part of its own conditional execution instead of commands on a new line, whether executed in the command line or in a batch file.
For example
The return result is
Execution is normal.
But if
No result is returned, and the second echo is never executed.
But if it is written in two separate lines in a batch file, it is not affected
Execution is normal.
This bug does not affect the statements before the if in the same line.
It has been tested that this bug only occurs in high - version 4NT / Take Command, and exists in 8.0, 9.0, 10.0, but not in 6.0, 7.0 and 4DOS.
When the judgment condition is false, the if command will ignore the command separator in the same line after it, that is, it will treat the other multiple commands separated as part of its own conditional execution instead of commands on a new line, whether executed in the command line or in a batch file.
For example
if 1==1 echo 1 %+ echo 2The return result is
1
2
Execution is normal.
But if
if 1==2 echo 1 %+ echo 2No result is returned, and the second echo is never executed.
But if it is written in two separate lines in a batch file, it is not affected
if 1==2 echo 1
echo 2
Execution is normal.
This bug does not affect the statements before the if in the same line.
It has been tested that this bug only occurs in high - version 4NT / Take Command, and exists in 8.0, 9.0, 10.0, but not in 6.0, 7.0 and 4DOS.
DOS倒下了,但永远不死
DOS NEVER DIES !
投票调查:
http://www.cn-dos.net/forum/viewthread.php?tid=46187
本人尚未解决的疑难问题:
http://www.cn-dos.net/forum/viewthread.php?tid=15135
http://www.cn-dos.net/forum/viewthread.php?tid=47663
http://www.cn-dos.net/forum/viewthread.php?tid=48747
DOS NEVER DIES !
投票调查:
http://www.cn-dos.net/forum/viewthread.php?tid=46187
本人尚未解决的疑难问题:
http://www.cn-dos.net/forum/viewthread.php?tid=15135
http://www.cn-dos.net/forum/viewthread.php?tid=47663
http://www.cn-dos.net/forum/viewthread.php?tid=48747

