This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What happens the first time BASH is run?


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 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).
-- 
René 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]