Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2008 17:28:19 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Fwd: Re: Incorrect commandline history with bash
Message-ID:  <20080922002819.GA12610@icarus.home.lan>
In-Reply-To: <p06240801c4fc7c57b712@[128.113.24.47]>
References:  <20080921215255.GA9622@icarus.home.lan> <p06240801c4fc7c57b712@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 21, 2008 at 06:45:22PM -0400, Garance A Drosihn wrote:
> At 2:52 PM -0700 9/21/08, Jeremy Chadwick wrote:
>>
>> Individual did not CC the mailing list on his response.
>>
>> ----- Forwarded message from manish jain <unxfbsdi@gmail.com> -----
>>  >
>>  > Thanks Jeremy. Sourcing .bash_profile from .bashrc solved the
>>  > problem. For some reason, sourcing .bashrc from .bash_profile
>>  > worked equally well with the version of Linux I was previously
>>  > using.
>>  >
>>>  Regards
>>>  Manish Jain
>> -----    end message from manish jain <unxfbsdi@gmail.com> -----
>
> I do not understand how that makes any difference.  He had all his
> commands in .bashrc, and sourced it from .bash_profile.  If he
> moves all his commands to .bash_profile, and then sources that
> from his .bashrc, then isn't the result exactly the same?  Either
> way, all commands should be executed no matter how bash starts up.

The INVOCATION section of the bash man page goes over the subtle
differences.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080922002819.GA12610>