From: Earnie B. <ea...@us...> - 2013-02-09 17:40:40
|
On Fri, Feb 8, 2013 at 4:39 PM, Keith Marshall wrote: > On 08/02/13 19:18, Earnie Boyd wrote: > [MSYS ls maps c:foo as c:/foo, regardless of current directory] >> Yes, it is working properly. Bash converts \p to p and c:programs >> stats because of the way the OS handles it. > > I disagree. This claim does not withstand scrutiny... > > $ cd > > $ cmd //c cd > C:\MinGW\msys\1.0\home\keith > > $ cmd //c dir c:users > Volume in drive C has no label. > Volume Serial Number is 2038-1EBE > > Directory of C:\MinGW\msys\1.0\home\keith > > File Not Found > > $ ls c:users > All Users Default Default User Guest Public desktop.ini keith > > IMO, this is not working correctly; the latter two commands *should* > produce (effectively) the same result, i.e. if it does work the way the > OS handles it, c:users should map to the *current* directory on drive > c:, (not to the root of drive c:), yielding... > > $ ls c:users > ls: c:users: No such file or directory I later stated it was broken. I'm guessing MSYS path translation is somehow getting in the way but one needs to follow the MSYS debug steps to find the issue. However my statements for D:Path as it concerns the OS is correct, it is a relative path to mean the CWD of the specified device. MSYS however is somehow modifying CWD without returning it to the previous CWD. BTW, you might want to use cmd.exe instead of cmd in your tests to exclude the use of shell script. -- Earnie -- https://sites.google.com/site/earnieboyd |