中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-24 17:41
47,812 topics / 349,910 posts / today 1 new / 48,262 members
WinPE、PowerShell及其它命令行系统专区 » A bug in the IF command of high - version 4NT / Take Command
Printable Version  2,927 / 4
Floor1 DOSforever Posted 2009-05-25 10:17
金牌会员 Posts 2,239 Credits 4,639
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
1
2

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.
Floor2 wl00560 Posted 2009-06-05 04:59
银牌会员 Posts 709 Credits 1,384
Ask, is there any major progress in 4NT now?
I'm still using 6.01...
Floor3 DOSforever Posted 2009-06-05 08:31
金牌会员 Posts 2,239 Credits 4,639
Now the highest version of 4NT and also the final version is 8.02 Build106, JPSoftware will no longer release subsequent versions. Starting from 9.0, JPSoftware has integrated the previous Windows command-line products into Take Command:

http://www.cn-dos.net/forum/viewthread.php?tid=40956#pid283683

Currently the latest version of Take Command is 10.0. The Take Command Console contained in Take Command can be said to be the continuation of 4NT. JPSoftware also has a completely Console-form free version: TCC LE. I tried it and found that it has many unsupported features, such as some variable functions not working, unable to set redirection in Unicode mode, etc. Well, the lite version is just to let you experience it, heh heh.

The new version of 4NT / Take Command of course has more commands, internal environment variables, variable functions than the old version, and of course some bugs have been fixed. Unexpectedly, some new bugs have appeared?! Heh heh
Floor4 Roy Posted 2010-04-14 19:00
管理员 Posts 1,633 Credits 4,869
Just posted in the official forum, let's see what responses there will be.
http://www.jpsoft.com/forums/showthread.php?p=9427
Floor5 Roy Posted 2010-04-14 20:48
管理员 Posts 1,633 Credits 4,869
The answer is just not to check "Duplicate CMD.EXE bugs".
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023