1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# DP: document /etc/bash.bashrc in bash man page
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -226,7 +226,9 @@ Display a usage message on standard outp
.PD
Execute commands from
.I file
-instead of the standard personal initialization file
+instead of the system wide initialization file
+.I /etc/bash.bashrc
+and the standard personal initialization file
.FN \*~/.bashrc
if the shell is interactive (see
.SM
@@ -257,7 +259,9 @@ reads these files when it is invoked as
below).
.TP
.B \-\-norc
-Do not read and execute the personal initialization file
+Do not read and execute the system wide initialization file
+.I /etc/bash.bashrc
+and the personal initialization file
.FN \*~/.bashrc
if the shell is interactive.
This option is on by default if the shell is invoked as
@@ -377,6 +381,8 @@ if it exists.
When an interactive shell that is not a login shell is started,
.B bash
reads and executes commands from
+.FN \*/etc/bash.bashrc
+and
.FN \*~/.bashrc ,
if that file exists.
The
@@ -385,6 +391,8 @@ option inhibits this behavior.
The \fB\-\-rcfile\fP \fIfile\fP option causes
.B bash
to use \fIfile\fP instead of
+.FN \*/etc/bash.bashrc
+and
.FN \*~/.bashrc .
.PP
When
@@ -475,8 +483,10 @@ If
.B bash
determines it is being run non-interactively in this fashion,
it reads and executes commands from
+.FN \*/etc/bash.bashrc
+and
.FN \*~/.bashrc ,
-if that file exists and is readable.
+if these files exist and are readable.
.B Bash
does not read this file if invoked as \fBsh\fP.
The
@@ -13401,6 +13411,9 @@ The \fBbash\fP executable
.FN /etc/profile
The systemwide initialization file, executed for login shells
.TP
+.FN /etc/bash.bashrc
+The systemwide per-interactive-shell startup file
+.TP
.FN \*~/.bash_profile
The personal initialization file, executed for login shells
.TP
|