This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: environment setup for bash and tcsh
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 16 May 2007 15:01:55 -0700
- Subject: Re: environment setup for bash and tcsh
- References: <5p5kll$hon05@rrcs-agw-02.hrndva.rr.com>
- Reply-to: 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/