www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/20/11:57:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 20 Sep 2004 11:57:41 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: John Morrison <john DOT r DOT morrison AT ntlworld DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Login behaviour oddities: won't run .profile
In-Reply-To: <26169.193.133.13.145.1095689906.squirrel@193.133.13.145>
Message-ID: <Pine.GSO.4.61.0409201154250.29980@slinky.cs.nyu.edu>
References: <20040920081046 DOT E810484CCE AT pessard DOT research DOT canon DOT com DOT au> <20040920091729 DOT GU17670 AT cygbert DOT vinschen DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0409200952540 DOT 20009 AT slinky DOT cs DOT nyu DOT edu> <26169 DOT 193 DOT 133 DOT 13 DOT 145 DOT 1095689906 DOT squirrel AT 193 DOT 133 DOT 13 DOT 145>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 20 Sep 2004, John Morrison wrote:

> > One solution is to remove /etc/skel/.bash_profile after the installs
> > (maybe even in your own site-specific postinstall script).  I don't know
> > if the base-files postinstall script will re-create that file, though --
> > if it does, it needs to be fixed.
>
> The base-files postinstall script will attempt to recreate its files
> if they don't exist, it can't differentiate between deleted and clean install
> (do any?).

Whoops, you're right.  I didn't think it through, sorry.

> If you want to use a ~/.profile instead change /etc/skel/.bash_profile to
> be something along the lines of
>
> source ~/.profile
>
> Base-files *will not* (now) overwrite a user modified file.
>
> Would this be sufficient?

Right.  That would work (and, of course, will eliminate any chance of
having different profile settings for bash and sh).

> I don't know how to improve this... make a note during preremove of any
> of the manifest files missing and don't create them upon installation?
> Possible I suppose...

Mmm, probably not worth the bother.  Besides, what do you do then if you
*add* a new /etc/skel file to the base-files package?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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