[Bug 890916] [NEW] Login shell not sourcing /etc/profile and ${HOME}/.bashrc

Thomas Schweikle 890916 at bugs.launchpad.net
Tue Nov 15 23:47:29 UTC 2011


Public bug reported:

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

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/890916

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

Status in “bash” package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/890916/+subscriptions




More information about the foundations-bugs mailing list