/etc/profile incorrectly sources /etc/.profile.d/ content before setting PS1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In its current form, /etc/profile sources the content of /etc/profile.d/ first and then sets PS1. This effectively prevents the administrator or a third-party package from setting PS1 by adding a file to /etc/profile.d/ and is therefore undesirable. The order of the code fragments for sourcing /etc/profile.d content and for setting the stock PS1 must thus be reversed.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: base-files 6.5ubuntu1
ProcVersionSign
Uname: Linux 3.1.0-1-generic i586
ApportVersion: 1.24-0ubuntu1
Architecture: i386
Date: Tue Oct 25 14:26:05 2011
Dependencies:
SourcePackage: base-files
UpgradeStatus: Upgraded to precise on 2009-02-07 (990 days ago)
Actually, comparing with the original Debian base-files 6.5's profile, I cannot see the reason for this diff.