man page names the same file twice -- are there really 2?

Bug #1216969 reported by Kevin O'Gorman
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bash (Debian)
New
Unknown
bash (Ubuntu)
Triaged
Low
Unassigned

Bug Description

In the bash(1) man page, INVOCATION section, second-to-last paragraph (begins with "Bash attempts to determine"), it says, in part:
   "it reads and executes commands from ~/.bashrc and ~/.bashrc,"
naming the same file twice. I suspect there's a file in /etc that gets read, but in any event the duplication should be either removed or corrected.q

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash 4.2-2ubuntu2.1
ProcVersionSignature: Ubuntu 3.2.0-49.75-generic-pae 3.2.46
Uname: Linux 3.2.0-49-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: i386
Date: Mon Aug 26 07:59:26 2013
InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 LC_COLLATE=C
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.bash.bashrc: [modified]
mtime.conffile..etc.bash.bashrc: 2012-10-05T23:02:00.509472

Revision history for this message
Kevin O'Gorman (kogorman-pacbell) wrote :
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Hmm I think you're right; in most other parts of that text it says
   'bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist.'

but that section does have ~/.bashrc twice.

It doesn't seem to be upstream bash, but seems to be in the debian/ubuntu man-bashrc.diff patch.

Changed in bash (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Hans Joachim Desserud (hjd) wrote (last edit ):

Can confirm this issue is still present in bash 5.1-6ubuntu1 on Ubuntu Jammy ( http://manpages.ubuntu.com/manpages/jammy/en/man1/bash.1.html#invocation ). It has been discovered and reported by various people over the years (see the attached bug watch for a corresponding Debian report), so I'm trying to gather the duplicates in one place her.

>It doesn't seem to be upstream bash,

No, this is also confirmed by duplicate bug 1968313

I believe it should be a simple fix, but I unfortunately don't know what the first ~/.bashrc should be replaced with.

tags: added: bionic focal jammy manpage string-fix
Revision history for this message
Paddy Landau (paddy-landau) wrote :

> "I unfortunately don't know what the first ~/.bashrc should be replaced with."

The author has confirmed that it should just be removed, not replaced.

Changed in bash (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.