[1938] in athena10
Re: pagbug workaround
daemon@ATHENA.MIT.EDU (Greg Price)
Sun Mar 29 01:04:32 2009
Date: Sun, 29 Mar 2009 01:03:28 -0400
From: Greg Price <price@MIT.EDU>
To: Anders Kaseorg <andersk@mit.edu>
Cc: linerva@mit.edu
Message-ID: <20090329050327.GG21912@vinegar-pot.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <alpine.DEB.2.00.0903290034260.6942@vinegar-pot.mit.edu>
On Sun, Mar 29, 2009 at 12:40:26AM -0400, Anders Kaseorg wrote:
> On Sun, 29 Mar 2009, Greg Price wrote:
> > I knew that bashrc is all shells and profile is at login, but looked
> > in vain for an /etc/bash.profile. /etc/profile it is, thanks.
>
> bashrc is not all shells; it’s all _interactive_ shells.
That's not what the documentation says either, actually -- it's all
interactive _non-login_ shells. Which is why .profile files typically
source .bashrc.
Also the exclusion of non-interactive shells puzzles me because of
this sort of boilerplate that I've seen in various forms in diverse
.bashrc files, and in particular in /etc/skel/.bashrc in Debian:
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
And the skel file, together with you and the manpage, rounds out the
list of different behaviors people claim for these files:
$ head -1 /etc/skel/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
which I think just demonstrates that I'm not the only one who finds
this confusing.
> Please read about them before doing any kind of screwing with
> Linerva or Debathena dotfiles.
If you're suggesting I should have done so before sending mail, I
think this thread demonstrates that my strategy was a good one. =)
I've read the manpage section now.
Greg