/etc/skel/.bashrc should not set PS1

Bug #969559 reported by scott
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

I tried to change the PS1 for all users by editing /etc/bash_bashrc.

Expected:

PS1 to be modified for all users.

Actual result:

PS1 was not modified for any users because the /skel/.bashrc overrides the /etc/bash_bashrc PS1 setting with the exact same value.

PS1 should not be set in the skel/.bashrc. If users wish to customize their local .bashrc they can, but the default installation should not prevent setting a system wide PS1.

Matt Fischer (mfisch)
Changed in bash (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Mike Fiedler (miketheman) wrote :

Ran into this again today.

I understand the desire to set PS1 consistently across users, sessions, etc - however this makes changing it harder - since instead of setting it in one place (I was trying to drop it into /etc/profile.d/prompt.sh), this gets overridden by each user's individual ~/.bashrc that they inherited from /etc/skel.

Proposed:

Move any PS1 related settings to the global bashrc, which can then be overridden at later state, and remove from the /etc/skel/bash.bashrc

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.