File git-28-4555aa28348043b69ef0c66442eff95c1c6398c8.patch of Package aaa_base.4819

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
openSUSE Build Service is sponsored by