updates for several readline examples; update examples in readline documentation; update documentation for --rcfile option

This commit is contained in:
Chet Ramey
2024-07-02 14:34:40 -04:00
parent 5e28a1813c
commit dbff8b786e
10 changed files with 100 additions and 102 deletions
+6 -5
View File
@@ -5,14 +5,14 @@
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
.\" Last Change: Wed Jun 12 10:31:44 PDT 2024
.\" Last Change: Mon Jul 1 09:46:16 EDT 2024
.\"
.\" bash_builtins, strip all but Built-Ins section
.\" avoid a warning about an undefined register
.\" .if !rzY .nr zY 0
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2024 June 12" "GNU Bash 5.3"
.TH BASH 1 "2024 July 1" "GNU Bash 5.3"
.\"
.ie \n(.g \{\
.ds ' \(aq
@@ -351,9 +351,9 @@ reads and executes commands from \fI\*~/.bashrc\fP, if that file exists.
This may be inhibited by using the
.B \-\-norc
option.
The \fB\-\-rcfile\fP \fIfile\fP option will force
The \fB\-\-rcfile\fP \fIfile\fP option will cause
.B bash
to read and execute commands from \fIfile\fP instead of \fI\*~/.bashrc\fP.
to replace \fI\*~/.bashrc\fP with \fIfile\fP.
.PP
When
.B bash
@@ -448,7 +448,8 @@ The
.B \-\-norc
option may be used to inhibit this behavior, and the
.B \-\-rcfile
option may be used to force another file to be read, but neither
option will make \fBbash\fP replace \fI\*~/.bashrc\fP with a different file,
but neither
\fIrshd\fP nor \fIsshd\fP generally invoke the shell with those options
or allow them to be specified.
.PP
+7 -4
View File
@@ -7368,8 +7368,9 @@ the file @file{~/.bash_logout}, if it exists.
When an interactive shell that is not a login shell is started, Bash
reads and executes commands from @file{~/.bashrc}, if that file exists.
This may be inhibited by using the @option{--norc} option.
The @option{--rcfile @var{file}} option will force Bash to read and
execute commands from @var{file} instead of @file{~/.bashrc}.
The @option{--rcfile @var{file}} option will
cause Bash to
replace @file{~/.bashrc} with @var{file}.
So, typically, your @file{~/.bash_profile} contains the line
@example
@@ -7441,8 +7442,10 @@ it reads and executes commands from @file{~/.bashrc}, if that
file exists and is readable.
It will not do this if invoked as @code{sh}.
The @option{--norc} option may be used to inhibit this behavior, and the
@option{--rcfile} option may be used to force another file to be read, but
neither @code{rshd} nor @code{sshd} generally invoke the shell with those
@option{--rcfile} option
will make Bash replace @file{~/.bashrc} with a different file,
but neither
@code{rshd} nor @code{sshd} generally invoke the shell with those
options or allow them to be specified.
@subsubheading Invoked with unequal effective and real @sc{uid/gid}s
+3 -3
View File
@@ -2,10 +2,10 @@
Copyright (C) 1988-2024 Free Software Foundation, Inc.
@end ignore
@set LASTCHANGE Wed Jun 12 10:34:52 PDT 2024
@set LASTCHANGE Mon Jul 1 09:45:45 EDT 2024
@set EDITION 5.3
@set VERSION 5.3
@set UPDATED 12 June 2024
@set UPDATED-MONTH June 2024
@set UPDATED 1 July 2024
@set UPDATED-MONTH July 2024