Date:    Tue, 15 Nov 2005 11:00:26 -0600
From:    Tom Duerbusch <[EMAIL PROTECTED]>
Subject: Re: Which profile file is read on z/Linux?


>I've seen Oracle manuals that said to do an "echo $SHELL", and when it
>came back as "bash", add lines to your ".profile" file.  I tried the
>".profile" and it doesn't get executed.  So, it seems to me that
>something has been changing.

>Tom Duerbusch
>THD Consulting

>From man bash:
When bash is invoked as an interactive login shell, or  as
a  non-interactive shell with the --login option, it first
reads and executes commands 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.

If .profile was not executed, then you must have had one of the bash
specific files in ~ already.


Tom Russell

"Stay calm.  Be brave.  Wait for the signs." -- Jasper FriendlyBear

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to