delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/13/19:53:50

X-Spam-Check-By: sourceware.org
Message-ID: <45302702.58806A27@dessent.net>
Date: Fri, 13 Oct 2006 16:53:38 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: What happens the first time BASH is run?
References: <974f412a0610131632r6fff91d8w7816d84b7108e08e AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

Tim Largy wrote:

> When running BASH for the first time after installing Cygwin, the
> user's home directory is created, and .bashrc and other dotfiles are
> copied into it. Where is this behavior controlled? Is it compiled into
> BASH? If that is the case, what other scripts does BASH call upon to
> set up the user's home directory?

Hard coding that into bash would be needlessly complex and a maintenance
nightmare.  Instead /etc/profile just copies them from /etc/skel if they
don't exist.

You probably also ought to the section of "man bash" titled INVOCATION.

Brian

--
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