delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/26/14:39:32

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
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3BD9ADC6.BF581E7F@yahoo.com>
Date: Fri, 26 Oct 2001 14:39:02 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: CD List <Cygwin-Developers AT Cygwin DOT Com>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin-developers AT Cygwin DOT Com
Subject: Re: [mathew DOT boorman AT au DOT cmg DOT com: /etc/profile /etc/passwd and HOME]
References: <20011026200103 DOT B7622 AT cygbert DOT vinschen DOT de> <20011026140728 DOT A347 AT redhat DOT com>

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?

I just checked and yes it does.  However I believe that would only be
for --login.

> Having /etc/profile do this for you seems wrong.

Yes, perhaps Cygwin should do it in dll initialization.

> 
> cgf
> 

Earnie.

> >Corinna
> >
> >----- Forwarded message from Mathew Boorman <mathew DOT boorman AT au DOT cmg DOT com> -----
> >
> >Date: Fri, 26 Oct 2001 17:13:04 +1000
> >From: Mathew Boorman <mathew DOT boorman AT au DOT cmg DOT com>
> >Subject: /etc/profile /etc/passwd and HOME
> >To: cygwin AT cygwin DOT com
> >
> >
> >After installing on 2000 where my account has a default HOMEDRIVE setup, I
> >did the cygwin install.
> >
> >mkpasswd automatically setup the home field in /etc/passwd correctly, but it
> >did not work.
> >
> >I found /etc/profile does not check that but instead only checks for an
> >existing HOME.  It does not check for a value in /etc/passwd.
> >
> >The following change worked for me, but it assumes that /etc/passwd exists.
> >
> >Any comments?
> >
> ># Set up USER's home directory
> >+# try and get it from /etc/passwd
> >+if [ -z "$HOME" ]; then
> >+  HOME=`grep mat /etc/passwd | cut --delimiter=: --fields=6`
> >+fi
> >+
> >+# fallback if HOME was not set in /etc/passwd
> >if [ -z "$HOME" ]; then
> >  HOME="/home/$USER"
> >fi
> >
> >
> >
> >If OK and so requested I will figure out how to do a real patch.
> >
> >m@
> >
> >
> >
> >
> >--
> >Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> >Bug reporting:         http://cygwin.com/bugs.html
> >Documentation:         http://cygwin.com/docs.html
> >FAQ:                   http://cygwin.com/faq/
> >
> >----- End forwarded message -----
> >
> >--
> >Corinna Vinschen                  Please, send mails regarding Cygwin to
> >Cygwin Developer                                mailto:cygwin AT cygwin DOT com
> >Red Hat, Inc.
> 
> --
> cgf AT cygnus DOT com                        Red Hat, Inc.
> http://sources.redhat.com/            http://www.redhat.com/

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


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