[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: path separator
From: |
Brian Dessent |
Subject: |
Re: path separator |
Date: |
Tue, 23 Jan 2007 11:56:03 -0800 |
Bob Rossi wrote:
> Yes, thanks Keith!
>
> For the simple minded like myself, does this boil down to the fact that
> the PATH_SEPARATOR is different if an application is run from a cmd or
> msys shell?
The way I would have worded it would have been much simpler.
If your app links against a POSIX emulation layer (cygwin1.dll or
msys-1.0.dll) then use colon, otherwise use semicolon. This is a static
condition that does not change at all once the app is built, i.e. it
does not depend on how it's executed.
Assuming your app is a native app (i.e. the answer to the above is 'no')
then even if your app is run from a MSYS sh.exe it should still get a
copy of PATH that uses colons, since MSYS sh.exe should be able to tell
that this is not a MSYS binary. The "how it tells" is either by looking
at whether it's linked against msys-1.0.dll or whether it's installed in
the MSYS bin directory -- I forget which method is used and I think it
changed recently anyway.
Brian
- Re: path separator (was: target triplet), (continued)
- Re: path separator (was: target triplet), Keith MARSHALL, 2007/01/23
- Re: path separator (was: target triplet), Matthew Woehlke, 2007/01/23
- Re: path separator (was: target triplet), Keith MARSHALL, 2007/01/23
- Re: path separator (was: target triplet), Matthew Woehlke, 2007/01/23
- Re: path separator (was: target triplet), Brian Dessent, 2007/01/23
- Re: path separator (was: target triplet), Matthew Woehlke, 2007/01/23
- Re: path separator (was: target triplet), Brian Dessent, 2007/01/23
- Re: path separator, Paul Eggert, 2007/01/22
- Re: path separator, Ralf Wildenhues, 2007/01/23
- Re: path separator, Bob Rossi, 2007/01/23
- Re: path separator,
Brian Dessent <=
- Re: path separator, Keith MARSHALL, 2007/01/24
- Re: path separator, Matthew Woehlke, 2007/01/24
- Re: path separator, Brian Dessent, 2007/01/24
- Re: path separator, Ralf Wildenhues, 2007/01/24
- Re: path separator, Matthew Woehlke, 2007/01/24
- Re: path separator, Keith MARSHALL, 2007/01/24
- Re: path separator (was: target triplet), Keith MARSHALL, 2007/01/23
- Re: path separator, Ralf Wildenhues, 2007/01/23
- Re: path separator, Keith MARSHALL, 2007/01/24
- Re: target triplet, Keith MARSHALL, 2007/01/22