Dr. Werner Fink 2016-08-01 13:53:44 +00:00 committed by Git OBS Bridge
parent ef1b17c6cc
commit 756ff0494e
2 changed files with 41 additions and 3 deletions

View File

@ -8,9 +8,29 @@
|this in its INVOCATION section. I've checked the source code and it's |this in its INVOCATION section. I've checked the source code and it's
|hard coded to execute /etc/bash.bashrc (SYS_BASHRC macro) |hard coded to execute /etc/bash.bashrc (SYS_BASHRC macro)
| |
|BSC#959755 - man page on bash needs some clarification.
|
|Werner Fink 2016-08-01 12:40:06 UTC
|
|Make clear that the files /etc/profile as well as /etc/bash.bashrc may source
|other files as well even if the bash does not.
|
---
bash.1 | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
--- doc/bash.1 --- doc/bash.1
+++ doc/bash.1 2010-02-18 09:47:36.864126675 +0000 +++ doc/bash.1 2016-08-01 12:40:06.771618500 +0000
@@ -323,8 +323,8 @@ exists. @@ -324,6 +324,8 @@ and executes commands from the first one
The
.B \-\-noprofile
option may be used when the shell is started to inhibit this behavior.
+Please note that the file \fI/etc/profile\fP includes an autodetection shell
+code wether it has to source \fI/etc/bash.bashrc\fP as well as \fI~/.bashrc\fP.
.PP
When a login shell exits,
.B bash
@@ -332,13 +334,19 @@ exists.
.PP .PP
When an interactive shell that is not a login shell is started, When an interactive shell that is not a login shell is started,
.B bash .B bash
@ -21,7 +41,18 @@
.B \-\-norc .B \-\-norc
option. option.
The \fB\-\-rcfile\fP \fIfile\fP option will force The \fB\-\-rcfile\fP \fIfile\fP option will force
@@ -415,7 +415,8 @@ daemon, usually \fIrshd\fP, or the secur .B bash
to read and execute commands from \fIfile\fP instead of \fI~/.bashrc\fP.
+Please note that the file \fI/etc/bash.bashrc\fP includes an autodetection shell
+code wether it is used for by a remote OpenSSH SSH client like
+.BR ssh (1)
+or
+.BR slogin (1)
+to source the local \fI/etc/profile\fP if not already done.
.PP
When
.B bash
@@ -424,7 +432,8 @@ daemon, usually \fIrshd\fP, or the secur
If If
.B bash .B bash
determines it is being run in this fashion, it reads and executes determines it is being run in this fashion, it reads and executes

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Aug 1 13:47:05 UTC 2016 - werner@suse.de
- Make clear that the files /etc/profile as well as /etc/bash.bashrc
may source other files as well even if the bash does not.
Therefore modify patch bash-4.1-bash.bashrc.dif (bsc#959755)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 28 09:27:24 UTC 2016 - werner@suse.de Tue Jun 28 09:27:24 UTC 2016 - werner@suse.de