This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Heads-up: postinstall scripts and PATH (Attn all package maintainers)
On Tue, Feb 24, 2004 at 04:41:08PM -0500, Igor Pechtchanski wrote:
>On Tue, 24 Feb 2004, Christopher Faylor wrote:
>
>> On Tue, Feb 24, 2004 at 03:52:44PM -0500, Igor Pechtchanski wrote:
>> >> I'm not sure if it would be easy to test that the path pointed to by a
>> >> mount is valid and writable? Do you know of a clean way to do it?
>> >
>> >Umm, why not just test "[ -w /usr/X11R6/lib/X11/fonts ]"? But as for
>> >checking that it's mounted in binary mode, I can't think of a good way to
>> >do this other than parse the output of mount, and in this case you're
>> >probably better off forcing a umount and remounting.
>>
>> Sounds like an interesting cygpath option:
>>
>> bash$ cygpath --mode /tmp
>> binary
>>
>> I might take a stab at that since I can't suggest it to Igor.
>>
>> Is there a better name than --mode?
>
>I guess --mount-mode, to make it explicit. For a short option, "-M" seems
>unused.
I thought about that but it's not really only a "mount mode", though.
The file may not actually be mounted.
cgf