X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: What happens the first time BASH is run? Date: Fri, 13 Oct 2006 19:03:39 -0500 Lines: 18 Message-ID: References: <974f412a0610131632r6fff91d8w7816d84b7108e08e AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <974f412a0610131632r6fff91d8w7816d84b7108e08e@mail.gmail.com> OpenPGP: url=hkp://random.sks.keyserver.penguin.de X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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?[snip] No, it's not compiled into bash. Reading `man bash` probably answers this question but... what is happening = every time bash starts is that it executes /etc/profile and every .sh scrip= t in /etc/profile.d; in the first one you'll find how it creates the $HOME = directory, I don't think .bashrc is created or copied from anywhere, that o= ne is the user's responsibility (same for .profile, .bash_profile, etc. whi= ch on Unix/Linux are created when the user account is created). --=20 Ren=E9 Berber -- 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/