X-Spam-Check-By: sourceware.org Message-ID: <45302702.58806A27@dessent.net> Date: Fri, 13 Oct 2006 16:53:38 -0700 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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/