This is the mail archive of the cygwin 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: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.34-003 (Christmas/New Year release)


On Jan  7 18:41, Corinna Vinschen wrote:
> On Dec 20 19:19, Achim Gratz wrote:
> > Another thing is that the Cygwin home directory is always a
> > sub-directory of the windows home in our environment, so it would be
> > useful if there was a placeholder for the windows home directory (%H or
> > some such) for the /path override or even the schema entries to use.
> 
> Not unreasonable but tricky.  %H would be an absolute path which
> collides with the current implementation in terms of the leading slash.
> Hmm.

I added a %H specifier to the /path schema which is substituted by the
Windows home path in POSIX notation.  So, what you should be able to do
now is something like:

  db_home: /%H/cygwin

If %H is preceeded by a slash, the slash gets removed since %H is
already an absolute path.  However, the code is not explicitely checking
for nonsense, like

  db_home: /foo/%H/baz

It will just replace that with something like

  /foo/cygdrive/c/Users/Willy.Brandt/baz

so you end up with a broken home path.

This new feature is not documented yet, and for testing I'd like to urge
you to try the latest snapshot from https://cygwin.com/snapshots/  If
that change works as desired, I'll add documentation and release
another, hopefully one of the last, Cygwin test releases.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgp0yhGk0J59Q.pgp
Description: PGP signature


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