$PATH used to be set in .bash_profile

drew einhorn drew.einhorn at gmail.com
Fri May 18 10:56:50 UTC 2007

I have understood about .bash_profile and .bashrc for decades.

But on some vintages of some platforms $PATH did not work as expected.
and I had to make .xprofile a symbolic link to .bash_profile to keep
things happy.
I don't remember what that was all about. But the only surviving systems with
relics of this fix are on some Ubuntu boxes.  I did not try removing the
symbolic link to see if that broke anything.

When the current problem, a different stupid problem came up, I thought it
might have been this one rearing its ugly head again.

But I could not remember what I had done, when, where.

On 5/17/07, Peter Garrett <peter.garrett at optusnet.com.au> wrote:
> On Thu, 17 May 2007 18:43:17 -0600
> "drew einhorn" <drew.einhorn at gmail.com> wrote:
> > I had this problem once before and somebody told me the new place to set it.
> > But I forgot it.
> Try ~/.bashrc
> >
> > Was there a good reason for this change?
> .bash_profile is read for login shells only, whereas .bashrc is read for
> non-login shells like the ones you start by opening an xterm or
> gnome-terminal - you can make .bash_profile source .bashrc if you wish
> though, and in fact in Ubuntu it does so by default - try reading the
> file, and you will see, amongst other things,
> # include .bashrc if it exists
> if [ -f ~/.bashrc ]; then
>     . ~/.bashrc
> fi
> Also note the following lines, commented out in .bash_profile
> # Redundant since we are sourcing .bashrc anyway
> # set PATH so it includes user's private bin if it exists
> #if [ -d ~/bin ] ; then
> #    PATH=~/bin:"${PATH}"
> #fi
> Peter
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Drew Einhorn

More information about the ubuntu-users mailing list