[mathew.boorman@au.cmg.com: /etc/profile /etc/passwd and HOME]

Corinna Vinschen vinschen@redhat.com
Fri Oct 26 11:32:00 GMT 2001


On Fri, Oct 26, 2001 at 02:07:28PM -0400, Christopher Faylor wrote:
> On Fri, Oct 26, 2001 at 08:01:03PM +0200, Corinna Vinschen wrote:
> >I like that idea.
> >
> >Should we add these lines to the generated profile?
> 
> Doesn't bash do this for you automatically, somehow?
> Having /etc/profile do this for you seems wrong.

Setting HOME is the job of the login process (login/sshd, etc.)
No shell sets HOME by itself even if it's started as login shell.

Worst case is tcsh, which doesn't even start if HOME isn't set.

The workaround to set it in /etc/profile does fortunately work
for bash. 

The other solution (if you think /etc/profile is too ugly) would
be to set HOME in cygwin.bat if it isn't already set.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-developers mailing list