man bash shows "files ~/.bashrc and ~/.bashrc" instead of "files /etc/bash.bashrc and ~/.bashrc"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
From (via dpkg -s):
Package: bash
...
Maintainer: Ubuntu Developers <email address hidden>
Architecture: i386
Version: 4.1-2ubuntu3
in
/usr/share/
-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://
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
summary: |
- man bash shows "files ~/.bashrc and ~/.bashrc" + man bash shows "files ~/.bashrc and ~/.bashrc" instead of "files + /etc/bash.bashrc and ~/.bashrc" |
tags: | added: manpage |
Confirmed. Here's the entry from 10.04:
When an interactive shell that is not a login shell is started, bash
reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if
these files exist. This may be inhibited by using the --norc option.
The --rcfile file option will force bash to read and execute commands
from file instead of /etc/bash.bashrc and ~/.bashrc.
In other words, the files are /etc/bash.bashrc and ~/.bashrc.