Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:Update
aaa_base.7432
git-28-4555aa28348043b69ef0c66442eff95c1c6398c8...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-28-4555aa28348043b69ef0c66442eff95c1c6398c8.patch of Package aaa_base.7432
From 4555aa28348043b69ef0c66442eff95c1c6398c8 Mon Sep 17 00:00:00 2001 From: Werner Fink <werner@suse.de> Date: Fri, 2 Jun 2017 13:35:02 +0200 Subject: [PATCH] Support changing PS1 even for mksh and user root Signed-off-by: Werner Fink <werner@suse.de> diff --git a/files/etc/bash.bashrc b/files/etc/bash.bashrc --- a/files/etc/bash.bashrc +++ b/files/etc/bash.bashrc @@ -221,7 +221,7 @@ case "$-" in # Some users of the ksh are not common with the usage of PS1. # This variable should not be exported, because normally only # interactive shells set this variable by default to ``$ ''. - if test "${PS1-\$ }" = '$ ' ; then + if test "${PS1-\$ }" = '$ ' -o "${PS1-\$ }" = '# ' ; then if test "$UID" = 0 ; then PS1="${HOST}:"'${PWD}'" # " else
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor