This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Heads-up: postinstall scripts and PATH (Attn all package maintainers)


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?
> cgf

I guess --mount-mode, to make it explicit.  For a short option, "-M" seems
unused.

Speaking of cygpath, it doesn't work correctly on paths of the form "a:.".
Some Windows programs put something of the form "X:.;Y:.;Z:." into the
Windows system PATH, and that confuses the cygwin1.dll path translation
code.  Frankly, I'm not sure how to fix this (the place to do this would
be mount_info::cygdrive_posix_path() or mount_info::conv_to_posix_path(),
but "a:." is a Windows-ism, with no equivalent POSIX name)...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]