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

CMD if parsing

Discussion in 'Support' started by Christian Albaret, Sep 21, 2011.

  1. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    in "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" there are lines like this

    :Parse_Args
    IF /I "%~1"=="/debug" SET "Configuration=Debug" & SHIFT & GOTO Parse_Args
    IF /I "%~1"=="/release" SET "Configuration=Release" & SHIFT & GOTO Parse_Args

    It seems under CMD the SHIFT and the GOTO are part of the IF clause.
    Under TCC the &-command-separator makes that the SHIFT and GOTO always apply — yielding and infinite loop.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    Type OPTION and press Enter to open the configuration dialog. On the first tab (Startup), the second item down in the last column is labelled 'Duplicate CMD.EXE bugs'. Try turning it on -- I think that's what you want.
     
  3. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    You are right. Thanks. (I should have found this answer myself: I knew the option but never looked at what bugs are replicated.)
     

Share This Page