delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
Subject: | Re: What happens the first time BASH is run? |
Date: | Fri, 13 Oct 2006 19:03:39 -0500 |
Lines: | 18 |
Message-ID: | <egp9gq$t0h$1@sea.gmane.org> |
References: | <974f412a0610131632r6fff91d8w7816d84b7108e08e AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
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 |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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?[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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |