1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

%+ works differently after upgrade

Discussion in 'Support' started by roytam1, Apr 14, 2010.

  1. roytam1

    Joined:
    Apr 1, 2010
    Messages:
    43
    Likes Received:
    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.
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    | 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
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    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
     
  4. roytam1

    Joined:
    Apr 1, 2010
    Messages:
    43
    Likes Received:
    0
    Confirmed. Thanks.
     

Share This Page