Corinna Vinschen corinna-cygwin@cygwin.com
Sun Feb 15 10:15:00 GMT 2015

On Feb 13 14:47, Warren Young wrote:
> > On Feb 13, 2015, at 2:30 PM, Denis Excoffier <cygwin@Denis-Excoffier.org> wrote:
> > 
> > On 2015-02-13 22:04, Warren Young wrote:
> >> 
> >> I don’t think you should use %H when that directory might contain spaces.
> > 
> > You misunderstand. I don't need this stupid 'Document and Settings' thing. I need %H to represent my home dir, that means
> > /cygdrive/d/Home/myuser1 on this XP P3 (a corporate one) and /cygdrive/c/Users/myuser2 on this W7 (another corporate).
> In that case, I think you just want
> 	db_home: /%H
> %H already expands to a directory that contains your Windows user
> name.  You don’t need to add %U to it.
> > But currently, on XP SP3, the %H is replaced by '/cygdrive/d/Document and Settings/myuser1' which i'm pretty
> > close to consider as a bug. Should be '/cygdrive/d/Home/myuser1' i suppose.
> I’d be stunned if cygwin1.dll is hard-coding that string.  It must be
> getting it from somewhere.  I would do a registry scan to see if there
> is still some setting that still refers to c:\Documents and Settings.

I hope https://cygwin.com/ml/cygwin/2015-02/msg00425.html explains it
thoroughly enough.  Does %H need a better description in the docs?


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150215/245df2f9/attachment.sig>

More information about the Cygwin mailing list