On Tue, Dec 30, 2003 at 04:01:30AM +1100, George Ogata wrote:
> Why does the mere existence of a `.bash_profile' affect the default
> value of PATH?

This is from bash (1) in the section INVOCATION:

        "When  bash is invoked as an interactive login shell, or as
        a non-inter- active shell with the --login option, it first
        reads and executes  com- mands  from  the file /etc/profile,
        if that file exists.  After reading that file, it looks for
        ~/.bash_profile, ~/.bash_login, and ~/.profile, in  that order,
        and reads and executes commands from the first one that exists
        and is readable.  The --noprofile option may be  used  when  the
        shell is started to inhibit this behavior."

so if ~/.bash_profile doesn't exist, bash will look at ~/.bash_login, if
that doesn't exist it will look at ~/.profile.

P.S. I hope this ends this thread and you don't get a hundred responses
telling you to RTFM :)

Hope that helps,
Bijan
-- 
Bijan Soleymani <[EMAIL PROTECTED]>
http://www.crasseux.com

Attachment: signature.asc
Description: Digital signature

Reply via email to