Hi,

        There is nothing that needs to be corrected under Redhat or any
other distribution. Bash was derived from a combination of the Bourne
shell, the C shell, and the Lorn shell. When invoked as 'sh' Bash tries to
imitate the behaviour of the Bourne shell as closely as possible. That is
the reason for the .profile to exist. Otherwise, the .bash_profile file
should always take precedence, as you can see from the following clip from
the bash man-page :

       Login shells:
         On login (subject to the -noprofile option):
               if /etc/profile exists, source it.

               if ~/.bash_profile exists, source it,
                 else if ~/.bash_login exists, source it,
                   else if ~/.profile exists, source it.

         On exit:
               if ~/.bash_logout exists, source it.

       Non-login interactive shells:
         On startup (subject to the -norc and -rcfile options):
               if ~/.bashrc exists, source it.

Kenneth


There is no such thing as luck. 'Luck' is nothing but an absence of bad luck.

On Mon, 8 Mar 1999, George Schroeder wrote:

> 
> Gary Starks wrote:
> 
> > I would probably recommend making a hard link to profile.  That way both
> > files get changed if you update either of them.
> >
> > ln .bash_profile .profile
> >
> > It's not like they take up that much space anyway.
> >
> > >Date:  Tue, 2 Mar 1999 16:28:41 -0700 (MST)
> > >To:    [EMAIL PROTECTED], Mandy <[EMAIL PROTECTED]>
> > >From:  [EMAIL PROTECTED] (Mitchell Gil Maltenfort)
> > >Subject: .bash_profile vs. .profile, and other RH "corrections"
> > >Cc:    Linux Newbie List <[EMAIL PROTECTED]>
> > >
> > >>> I am confused about where my .profile is.  I know where it SHOULD
> > >>> be....and i know i have to do a ls -a to see it....but when i do
> > that it
> > >>> is not there...yes when i try and creat a file named .profile it
> > asks if
> > >>> i want to overwrite the one that is there....so what is the deal
> > with
> > >>> that? Running RH5.2 with bash shell.
> > >>>
> > >>
> > >>On RH it's called .bash_profile
> > >>
> > >
> > >Query from an anal newbie:
> > >
> > >do I risk fouling up my system if I rename .bash_profile .profile for
> > >consistency with Linux proper?
> > >
> > >and is there a documented list of other RH idiosyncracies?
> > >
> > >Thanks in advance.
> > >
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> 
> 

Reply via email to