Rereading of .bash_profile

Perrin Aybara vze24938 at verizon.net
Fri Dec 29 21:19:02 PST 2000


I have a completely different opinion on this.  I've been using . 
~/.bash_profile (that's a dot, then a space, then ~/.bash_profile).  This 
works for shell scripts, executables, whatever.  The period, as far as I 
know, pretty much stands for "run this".  



On Friday 29 December 2000 11:44 pm, you wrote:
> Normally I stay out of "the right way" discussions since I rarely see there
> being a single "right way" to do anything. Usually there are "better",
> "easier" and "personal preference". However I really have to ask Jason why
> he feels 'source' is the "right way" to execute .bash_profile rather than
> sh. The only rationale I can see is that since .bash_profile typically
> doesn't start with a hashbang and isn't mode 0755 that it would be
> considerd a code snippet or (heaven forbid) a scriptlet, rather than a
> "shell script".
>
> BTW... until I'm convinced that 'source' is the "right way" to go, I'd
> argue that the right way would actually be bash ~/.bash_profile (it is,
> after all, the BASH profile).
>
>
>
>
> -----Original Message-----
> From: lfs-discuss-owner at linuxfromscratch.org
> [mailto:lfs-discuss-owner at linuxfromscratch.org]On Behalf Of Jason
> Kibblewhite
> Sent: Friday, December 29, 2000 9:08 PM
> To: lfs-discuss at linuxfromscratch.org
> Subject: Re: Rereading of .bash_profile
>
> On Sat, Dec 30, 2000 at 01:20:43AM -0800, WarmFuzzy wrote:
> > Barry wrote:
> > > I believe you can also get the .bash_profile to reread by typing 'sh
> > > ~/.bash_profile
> > >
> > > hope that helped :)
> >
> > Thanks Barry,
> >
> > I have the command written down on sticky note #102 framing my monitor
> > screen 8^). But seriously folks, thanks for the info. I didn't realize
> > one could export the commands at the command line and I knew there had
> > to be some sort of command to get Bash to reread .bash_profile. I tried
> > reading man: Bash but that is a lot of information to sift through. I
> > think that is the number one characteristic of a Linux user, a
> > willingness to do a lot of reading. I suppose a healthy dose of patience
> > might not be a bad idea.
>
> While sh ~/.bash_profile is functional, source ~/.bash_profile is the
> correct
> way.
>
>
> --
> Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
> and put unsubscribe in the subject header of the message

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list