Re: Same test-path-utils behaves differently on different Windows systems
- From
Sebastian Schuberth <sschuberth@gmail.com>
- Date
- Oct 10, 2013, 19:47 UTC
- Message-ID
- <CAHGBnuO8ATSQu6HpJTm8bBg0akm+LUsZGRFoZPhzs89q7gTWqQ@mail.gmail.com>
- In-Reply-To
- <5256EA82.7020504@kdbg.org>
On Thu, Oct 10, 2013 at 7:57 PM, Johannes Sixt <j6t@kdbg.org> wrote:
Show 12 quoted lines
>> test-path-utils I get this on Windows Server 2008 R2 64-bit: >> >> $ test-path-utils mingw_path /a/b/ >> a:/b/ >> >> But if I install [1] on my local Windows 8 64-bit I get: >> >> $ test-path-utils mingw_path /a/b/ >> C:/msysgit/msysGit/a/b/ > > Interesting. I guess that you get consistent behavior when the first > path component is not merely a single letter, e.g., /foo/bar.
You're right! With /foo/bar on W2k8r2 I get
$ test-path-utils mingw_path /foo/bar/ C:/msysgit184/msysgit/foo/bar/
> Do you have a drive a: configured somewhere in your MSYS environment on > the 2k8r2 machine? See /etc/fstab. Do you have a floppy drive in that > machine?
Again you're correct. The W2k8r2 machine actually is a VM, providing a floppy drive "A:". So the obvious thing would be to replace /a/b/ with /foo/bar/ in the tests, but that just masks the problem, or?
PS: I'm also quite unhappy about naming the function "mingw_path". The path mangling comes from MSYS, not MinGW, so if at all it should be named msys_path. But as the code for the "mingw_path" function does nothing either MSYS or MinGW related but just prints argv[2] as it was passed to main() it should probably simply called "print_path".
-- Sebastian Schuberth -- -- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "msysGit" group. To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.