China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-08 20:00
中国DOS联盟论坛 » WinPE、PowerShell及其它命令行系统专区 » A bug in the IF command of high - version 4NT / Take Command View 2,770 Replies 4
Original Poster Posted 2009-05-25 10:17 ·  中国 上海 杨浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
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
if 1==1 echo 1 %+ echo 2

The return result is
1
2

Execution is normal.

But if
if 1==2 echo 1 %+ echo 2

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

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.
Floor 2 Posted 2009-06-05 04:59 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
Ask, is there any major progress in 4NT now?
I'm still using 6.01...
Floor 3 Posted 2009-06-05 08:31 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
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
Floor 4 Posted 2010-04-14 19:00 ·  中国 香港 城市电讯有限公司
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
Just posted in the official forum, let's see what responses there will be.
http://www.jpsoft.com/forums/showthread.php?p=9427
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 5 Posted 2010-04-14 20:48 ·  中国 香港 城市电讯有限公司
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
The answer is just not to check "Duplicate CMD.EXE bugs".
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Forum Jump: