environment setup for bash and tcsh

Dave Korn dave.korn@artimi.com
Wed May 16 23:05:00 GMT 2007


On 16 May 2007 22:55, 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

  What Brian said.  Also, ...

> Tcsh:
> /etc/csh.cshrc -> /etc/csh.login -> ~/.tcshrc -> ~/.history -> ~/.login
> 
> What is executed prior to these files for setting up the environment?
> I added an echo statement for PATH as a first line in /etc/csh.cshrc.  this
> variable was already defined with paths.  Where does this get initialized?

  During process startup, it is converted from the windows PATH setting during
the cygwin1 dll initialisation.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/



More information about the Cygwin mailing list