This is the mail archive of the cygwin@cygwin.com 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]

Bash is backwards, or I can't read a man page.


According to what I get from the manpage, the order of execution for a
login shell should be:

/etc/profile
~/.bash_profile
~/.bashrc

When I login, I see 
/etc/profile
~/.bashrc
~/.bash_profile

because /etc/profile tests for ./.bashrc and runs it itself.

Is this a bug or a feature? Does someone have a clearer explanation of
what stuff goes into .bash_profile and what goes into .bashrc and when
they get called? Maybe it's just me - I can't grok this in ksh using the
O'Reilly book either.

-- 
Matthew O. Persico
    
http://www.acecape.com/dsl
AceDSL:The best ADSL in Verizon area

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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