From: EPA AT datcon DOT co DOT uk (Edward Avis) Subject: RE: B19; supporting a DOS-path such as C:\a\b\c;C:\d\e\f;D:\g\h 15 May 1998 10:45:26 -0700 Message-ID: To: "'gnu-win32 AT cygnus DOT com'" >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 / 4. Change x:foo, X:foo, /x:foo, /X:foo, //x:foo, //X:foo, //x/foo, //X/foo to //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 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".