#5 The if cmd.exe command does not behave as expected

closed-out-of-date
nobody
None
1
2010-05-02
2007-07-13
Anonymous
No

I have attached my edited version of set_gnuwin32.bat.

The original had and still have an odd behavior when expanding the %path_all% (I suppose, that it is true for all environment variables containing path) in the if command statements.

I have marked my temporary fix with "hb:" (excl. ").

Regards

Henrik Bach
hb@decon.dk

Discussion

  • Nobody/Anonymous

    My edited version of set_gnuwin32.bat

     
  • Nobody/Anonymous

    Logged In: NO

    By accident I found that this behavior is due to the fact that the original %path% environment variable contains ". If these are removed, the behavior is as expected for the if command.

    Henrik Bach
    hb@decon.dk

     
  • Jay Satiro

    Jay Satiro - 2010-05-02
    • priority: 5 --> 1
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks