Corinna Vinschen corinna-cygwin@cygwin.com
Mon Feb 16 09:56:00 GMT 2015

On Feb 15 21:36, Andrey Repin wrote:
> >> By the way,
> >> getent passwd %USERNAME%
> >> return homedir correctly, but bash insist on using existing HOME even if
> >> started as login shell.
> > Of course.  All shells do that.  They expect HOME to have a useful value
> > because HOME is usually set by the login process before the shell is
> > started.  And the login process, if there is any, fetches HOME from the
> > account DB.
> That makes me wonder, if there's a sane way to simulate such login process
> under cygwin without asking user for name/password?
> Or unsetting global %HOME% is the only way to go?

There's no reason at all to set a global %HOME% variable for Cygwin.


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/20150216/aa9bdf39/attachment.sig>

More information about the Cygwin mailing list