Reality check on bash behavior.

John Summerfied debian at herakles.homelinux.org
Mon Jan 16 11:27:20 UTC 2006


akonstam at trinity.edu wrote:
> I need to check that my observations on bash invocation is correct.
> In the bash man page it states that when the bash shell in invoked the
> following three files are sourced: /etc/profile, ~/.bash_profile and
> ~/.profile. My observation is that when .bash_profile is present
> .profile is not sourced.

Sounds about my recollection.
> 
> This is in important to us because we have the same user directories 
> mounted on FC4 machines and OS X machines, On OS X machines it looks
> like .profile is sourced even when a .bash_profile exists.
> 
> I just want to check that my sanity is still in place and I am seeing
> what is really happening. I realize behavior on an OS X machine is off
> topic on a fedora list.
> 

Read the scripts, see what they do. Some may source others that might 
not otherwise be read.

bash probably behaves the same on all platforms, but the scripts' 
behaviour is determined by your vendors.



-- 

Cheers
John

-- spambait
1aaaaaaa at computerdatasafe.com.au  Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list




More information about the fedora-list mailing list