This is the mail archive of the cygwin-developers@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]

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


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.


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