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]

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


>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.

This gives me an excuse to go on about DOS-style paths...

Personally, I think it would be a good idea if cygwin used the following
algorithm to deal with paths:

1. Change all \ to /.

2. Change all repeated slashes to single slashes, except for the first
character.  (ie ///a/b//c -> //a/b/c )

3. Change x:/, X:/, /x:/, /X:/, //x:/, //X:/, //x/, //X/ to <whatever x:
is>/

4. Change x:foo, X:foo, /x:foo, /X:foo, //x:foo, //X:foo, //x/foo,
//X/foo to <whatever x: is>/<Windows current directory on x:>/foo

5.Try to match case-sensitively.  If that fails, try to match
case-insensitively instead.  If that fails, try to match taking account
of Windows pecularities (for example "bar." and "bar...." are equivalent
to "bar").

This would provide maximum compatibility between Windows and Cygwin32
apps.  Of course "pwd" and so on would still show Unix style pathnames.

Hopefully the people who actually develop cygwin will point out flaws in
my suggestion.

--
Ed Avis <http://members.tripod.com/~mave>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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