[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MinGW vs. c-api.test
From: |
Ludovic Courtès |
Subject: |
Re: MinGW vs. c-api.test |
Date: |
Fri, 13 Jun 2014 18:04:57 +0200 |
User-agent: |
Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) |
Neil Jerram <address@hidden> skribis:
>> Eli Zaretskii <address@hidden> skribis:
>>
>>>> From: address@hidden (Ludovic Courtès)
>>>> Cc: address@hidden
>>>> Date: Thu, 12 Jun 2014 21:48:48 +0200
>>>>
>>>> >> >> +(define %null-device
>>>> >> >> + ;; On Windows (MinGW), /dev/null does not exist and we must
>>>> >> >> instead
>>>> >> >> + ;; use NUL. Note that file system procedures automatically
>>>> >> >> translate
>>>> >> >> + ;; /dev/null, so this variable is only useful for shell snippets.
>>>> >> >> + (if (file-exists? "/dev/null")
>>>> >> >> + "/dev/null"
>>>> >> >> + "NUL"))
>>>> >> >
>>>> >> > Not sure this is a good idea: I can create a file /dev/null on
>>>> >> > Windows, but that doesn't mean it is my null device.
>>>> >>
>>>> >> Yes, but using %host-type isn’t perfect either, no? What would you
>>>> >> prefer?
>>>> >
>>>> > How about testing if the absolute name of the current directory starts
>>>> > with a drive letter?
>>>>
>>>> Like (string-match "^[a-zA-Z]:[/\\]" (getcwd)) ?
>>>
>>> Yes.
>
> But my Git Bash shell on Windows (at work) gives me paths like /<drive
> letter>/...
> For example:
>
> address@hidden /c/work/icp (master)
> $ pwd
> /c/work/icp
>
> I think that shell is provided by MinGW/MSYS - so does that mean that
> the regexp check
> above might not be correct in all contexts on Windows?
Isn’t it rather provided by Cygwin?
I would think that (getcwd) on Cygwin would return /c/... whereas
(getcwd) on MinGW would return C:\..., no?
Thanks,
Ludo’.
- Re: MinGW vs. c-api.test, (continued)
- Re: MinGW vs. c-api.test, Ludovic Courtès, 2014/06/10
- Re: MinGW vs. c-api.test, Eli Zaretskii, 2014/06/10
- Re: MinGW vs. c-api.test, Ludovic Courtès, 2014/06/11
- Re: MinGW vs. c-api.test, Eli Zaretskii, 2014/06/11
- Re: MinGW vs. c-api.test, Ludovic Courtès, 2014/06/12
- Re: MinGW vs. c-api.test, Eli Zaretskii, 2014/06/12
- Re: MinGW vs. c-api.test, Ludovic Courtès, 2014/06/12
- Re: MinGW vs. c-api.test, Eli Zaretskii, 2014/06/12
- Re: MinGW vs. c-api.test, Ludovic Courtès, 2014/06/12
- Re: MinGW vs. c-api.test, Neil Jerram, 2014/06/13
- Re: MinGW vs. c-api.test,
Ludovic Courtès <=
- Re: MinGW vs. c-api.test, Eli Zaretskii, 2014/06/13
- Re: MinGW vs. c-api.test, Neil Jerram, 2014/06/13
- Re: MinGW vs. c-api.test, Mike Gerwitz, 2014/06/13
- Re: MinGW vs. c-api.test, Eli Zaretskii, 2014/06/13
Windows file name separators, Ludovic Courtès, 2014/06/09