www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/26/14:35:02

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Fri, 26 Oct 2001 20:31:55 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: [mathew DOT boorman AT au DOT cmg DOT com: /etc/profile /etc/passwd and HOME]
Message-ID: <20011026203155.D7622@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20011026200103 DOT B7622 AT cygbert DOT vinschen DOT de> <20011026140728 DOT A347 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20011026140728.A347@redhat.com>; from cgf@redhat.com on Fri, Oct 26, 2001 at 02:07:28PM -0400

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 AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019