Login shell not sourcing /etc/profile and ${HOME}/.bashrc

Bug #890916 reported by Thomas Schweikle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

bash does not source /etc/profile and ${HOME}/.bashrc for login shells, ignoring some settings done within these files. Additionally aliases are set while sourcing /etc/profile and ${HOME}/.bashrc overwriting each other. Aliases shall be read at one place only from one source if possible. Not from /etc/profile.d/aliases.sh, from within /etc/profile and from ${HOME}/.bashrc there is to much posibility you'll change aliases overwritten by other parts while executing login leading to different command behaviour later on. This can be something really bad: assume one awaiting "rm" aliased to "rm -i" kicking of "rm -r *" assuming this set because he/she is used to it from xterm, but it isn't set this way login in from somewhere else via ssh or ssh+screen and having again a different behaviour logging in with xterm+byobu or ssh+byobu enabled!

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: bash 4.2-0ubuntu4
Uname: Linux 3.0.9 x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Wed Nov 16 00:37:49 2011
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.bash.bashrc: 2011-10-19T21:08:11.823309

Related branches

Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

bash (4.3-7ubuntu2) utopic; urgency=medium

  * Source profile.d from /etc/bash.bashrc to allow packages ship
    integration hooks into interactive shells, same ones they already ship
    for login shells. (Closes: #675008)
 -- Dimitri John Ledkov <email address hidden> Wed, 07 May 2014 12:12:04 +0100

Changed in bash (Ubuntu):
status: New → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote :

bash (4.3-7ubuntu3) utopic; urgency=medium

  * Revert the last change. Upload didn't mention any Ubuntu issues, and
    closing issues like lp: #890916 which complain that there are too many
    places to set aliases aren't solved by just adding another place to
    add these. Requires further discussion as also told before the upload.

 -- Matthias Klose <email address hidden> Thu, 08 May 2014 11:58:40 +0200

Changed in bash (Ubuntu):
status: Fix Released → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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