Re: Configuring a non-root-user profile
Incoming from Colin Watson:
> On Wed, Jan 07, 2004 at 09:29:45AM -0700, s. keeling wrote:
> > Incoming from s. keeling:
> > > The last time I read O'Reilly's Learning the Bash Shell, it said
> > > .bash_profile is run on all logins. .bashrc is run on top of that
> > > (automagically) for all _interactive_ logins (which is why aliases
> >
> > Forget that automagically bit. I just tried it and it fails miserably.
>
> That would be because, if you're quoting the book correctly, it's wrong.
> :) See the INVOCATION section of bash(1) instead.
Re-reading it now, this chapter appears very confusing. According to
it, the automagically bit refers to .bashrc being run for sub-shells.
Then it tells you to put as little as possible in .bash_profile and
source .bashrc from the former. So, I agree. man bash instead.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- -
Reply to: