man bash shows "files ~/.bashrc and ~/.bashrc" instead of "files /etc/bash.bashrc and ~/.bashrc"

Bug #624726 reported by Andy Bach on 2010-08-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

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

 -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
~/.bashrc and

if these files exist and are readable.

(indenting to show duplication) - appears, from the online version:

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



Vallery Lancey (muscovy) wrote :

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.

Changed in ubuntu:
status: New → Confirmed
Vallery Lancey (muscovy) wrote :

Could you tell us what version of Ubuntu you are running?

Andy Bach (afbach) wrote :

Ubuntu 10.04.1 LTS (seen on both an Ubuntu and Kubuntu distro)

Vallery Lancey (muscovy) on 2010-08-28
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions