man bash shows "files ~/.bashrc and ~/.bashrc"

Asked by Andy Bach

From (via dpkg -s):
Package: bash
...
Maintainer: Ubuntu Developers <email address hidden>
Architecture: i386
Version: 4.1-2ubuntu3

in
/usr/share/man/man1/bash.1.gz
 -rw-r--r-- 1 root root 77544 2010-04-18 20:51

I see, under INVOCATION:
Bash attempts to determine when it is being run with its standard input connected to a a network
       connection, as if by the remote shell daemon, usually rshd, or the secure shell daemon sshd. If
       bash determines it is being run in this fashion, it reads and executes commands
 from
~/.bashrc and
~/.bashrc,

if these files exist and are readable.

(indenting to show duplication) - appears, from the online version:
http://manpages.ubuntu.com/manpages/lucid/en/man1/bash.1.html

one of those is supposed to be /etc/bash.bashrc My older bash man page just has:
it reads and executes commands from
~/.bashrc
if that file exists and is readable.

Thanks.

a

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Bach
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Is this a question?

Revision history for this message
Andy Bach (afbach) said :
#2

Er, yes - shouldn't the man page say:
from /etc/bash.bashrc and ~/.bashrc"

instead of:
from ~/.bashrc and ~/.bashrc

which, I suppose, is true (though I doubt it gets read twice) and does leave out the info about /etc/bash.bashrc being involved. I've check on 2 recent ubuntu installs and see it on both, but maybe it's just a local snafu.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Sounds like a bug. If the man pages say the same thing twice then I guess the answer would be "er, no" to useyour style of reply...

Revision history for this message
Andy Bach (afbach) said :
#4

Okay - sorry, I'm new here. I was sort of hoping somebody else or two might risk doing "man bash" and seeing if they see the same thing or not; I didn't want clutter up the bug list w/ a local problem. It's certainly not a big deal - I did notify the email address in the man page (Chet) who told me it must be a distro problem as that's not what the standard man page has (it only mentions ~/.bashrc). I filed a bug on it. Doesn't solve the problem, but I suppose ends this as a question, such as it was.

Again, sorry to disturb you.