This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B19; supporting a DOS-path such as C:\a\b\c;C:\d\e\f;D:\g\h


Cygnus Folks,

Let me first say that I like using bash on windows (cmd.exe makes me
insane). Naturally, bash uses a Unix-style PATH for finding things.
However, when bash runs "native" Windows applications these see a
Unix-style PATH but expect a DOS style path. An example of this would be
'nmake', or the Microsoft Tools (C compiler, linker, etc).

After checking the sourcecode, it seems as if src/bash/general.c lines
881 & 883 is where the magic happens (i.e., splitting on ':'). What
about allowing an environment variable that controls what character is
used to split the PATH?

A question at hand is if the implementation of "open" and friends in
cygwin32.dll understand DOS-style paths - but they might do that, so it
should work.

Any feedback on this one?

-Christian Callsen
begin:          vcard
fn:             Christian Callsen
n:              Callsen;Christian
org:            Active Software Inc.
adr:            3255-1 Scott Blvd, Suite 201;;;Santa Clara;CA;95054;USA
email;internet: chris@activesw.com
title:          Senior Software Engineer
tel;work:       +1 408 969-5675
tel;fax:        +1 408 969-6607
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]