delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/16/18:02:25

X-Spam-Check-By: sourceware.org
Message-ID: <464B7F53.CF11DD73@dessent.net>
Date: Wed, 16 May 2007 15:01:55 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: environment setup for bash and tcsh
References: <5p5kll$hon05 AT rrcs-agw-02 DOT hrndva DOT rr DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Karl Kobata wrote:

> I thought I understood how the environment is setup but I guess I don't
> really.
> Can anyone tell me the order and file names that are executed to get the
> environment setup for a bash shell and tcsh shell?
> Bash:
> /etc/profile -> /etc/bashrc -> ~/.bash_profile -> ~/.bash_login ->
> ~/.profile

For bash it is not a simple static list of files, it depends on a number
of factors: whether it's a login shell, whether it's an interactive
shell, whether it was invoked as 'sh' or 'bash', and so on.  Read the
man page, section INVOCATION.  Everything is explained there.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019