This is the mail archive of the
mailing list for the Cygwin project.
Re: What happens the first time BASH is run?
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Fri, 13 Oct 2006 19:03:39 -0500
- Subject: Re: What happens the first time BASH is run?
- Openpgp: url=hkp://random.sks.keyserver.penguin.de
- References: <firstname.lastname@example.org>
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
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 script 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 one is the user's responsibility (same for .profile, .bash_profile, etc. which on Unix/Linux are created when the user account is created).
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html