%+ works differently after upgrade

Apr 1, 2010
43
0
in old 4NT, say 4.01a to 7.0, command after %+ after false condition if will run. for example:
Code:
[C:\]if 1==2 echo 1 %+ echo 2
2

[C:\]

but in newer versions start from 8.0, echo 2 will not run.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
| in old 4NT, say 4.01a to 7.0, command after %+ after false condition
| if will run. for example:
|
| Code:
| ---------
| [C:\]if 1==2 echo 1 %+ echo 2
| 2
|
| [C:\]
| ---------
| but in newer versions start from 8.0, echo 2 will not run.

I could not duplicate your reported observation. I tested the command as you
reported:
if 1==2 echo 1 %+ echo 2
and with corrected syntax:
if 1 == 2 echo 1 %+ echo 2
(note the spaces around the comparison operator), and all of the 4NT / TCC
versions below executed the command after the command separator:

4NT 06.01.245 - 2005-05-24 16.05.50
4NT 07.01.370 - 2006-07-24 01.12.00
4NT 08.02.106 - 2008.03.10 13.50.00
TCC 09.02.157 - 2009.04.25 10.44.40
TCC 10.00.078 - 2010.01.24 11.51.24
TCC 11.00.044 - 2010.03.15 10.24.06

Do you by any chance have an alias for either IF, or ECHO?
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> in old 4NT, say 4.01a to 7.0, command after %+ after false condition if
> will run. for example:
>
> Code:
> ---------
> [C:\]if 1==2 echo 1 %+ echo 2
> 2
>
> [C:\]
> ---------
> but in newer versions start from 8.0, echo 2 will not run.

WAD, for compatibility with CMD.EXE.

You can revert to the old behavior by going to OPTION / Startup and
unchecking "Duplicate CMD.EXE bugs". See IF in the help for more details.

Rex Conn
JP Software
 
Apr 1, 2010
43
0
WAD, for compatibility with CMD.EXE.

You can revert to the old behavior by going to OPTION / Startup and
unchecking "Duplicate CMD.EXE bugs". See IF in the help for more details.

Rex Conn
JP Software
Confirmed. Thanks.
 
Similar threads
Thread starter Title Forum Replies Date
T VIEW only works from command line Support 14
D Alias with setdos no longer works Support 21
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
Phileosophos Enumshares works sometimes Support 16
I findstr works in cmd but not in tcc Support 5
Dmitry L. Kobyakov WAD Start /pgm "name.htm" works improperly Support 4
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7
Joe Caverly Works in debugger, not from cmd line Support 1
M "less" program that works in TC 18 Support 12
Joe Caverly Echo message works without the space? Support 3
cxxl dir /s works in mysterious ways :( Support 4
J WAD setarray "/f" only works on first one Support 1
M Console-Mode (*.exe) works in TCC, not in TCMD Support 2
redwdc btm won't run in ver. 17 but works in ver. 16 Support 11
I How to? Bat Works but BTM Doesn't Support 6
vefatica Alias works differenltly v16 vs. v17 Support 13
C FFind /w works but FFind /= doesn't? Support 2
R Drag to BTM no longer works in Windows 8.1 Support 10
Frank @replace works case sensitive Support 5
D TPIPE works without being in path, but not V; aemail Support 8
noahcoad c:/hello.txt works in cmd.exe but not tcc.exe Support 1
C .bat files works in cmd.exe, not in TCMD Support 6
K Ctrl-D alias no longer works Support 4
Joe Caverly Clearing a section of the screen works in CMD, not in TC Support 2
C Nested IF syntax — TCC behaving differently to CMD Support 12
H WAD Wild Card in Directory @shfolder[25] acting differently Support 3
C upgrade query Support 5
R Upgrade TCMD 19 to TCC 26 Support 1
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
CWBillow Upgrade Windows 10's effect on TCMD and TCC Support 3
J Upgrade eligilibility Support 2
CWBillow Upgrade process Support 7
C Forum upgrade Support 0
vefatica Was there a forum upgrade? Support 6
newbie Upgrade from v15 to v21 Support 9
lassevk Eligibility for upgrade pricing? Support 1
D Upgrade issue Support 3
D Upgrade from 19 to 19.10 fails Support 2
C Upgrade to v19.10.42 fails Support 5
nickles Conditions of upgrade to 19 Support 1
rconn News Forum Upgrade Support 7
C Forum upgrade msg this AM ? Support 1
T Deleting v.16 after upgrade Support 1
nickles Upgrade to 17 Support 1
vefatica Upgrade error Support 10
Dragineez Upgrade Qualification Support 5
keithg1964 Upgrade 16.00.25 to 16.00.27 Error Support 1
M Upgrade Question Support 2
vefatica Upgrade to build 28 Support 18

Similar threads