change redisplay to handle some cases where the line consumes more than the number of physical screen lines; add regerror() error messages if regular expression compilation fails; make sure active region readline variables are displayed with bind -v; partial fix for bind -x and commands containing quoting characters

This commit is contained in:
Chet Ramey
2023-07-19 15:33:45 -04:00
parent 7f7ee0e9c6
commit ad39c5c3d7
23 changed files with 2269 additions and 1996 deletions
+19 -10
View File
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
.\" Last Change: Fri Jul 7 15:07:53 EDT 2023
.\" Last Change: Wed Jul 19 14:23:20 EDT 2023
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2023 July 7" "GNU Bash 5.3"
.TH BASH 1 "2023 July 19" "GNU Bash 5.3"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -6116,9 +6116,13 @@ If set to \fBnone\fP, readline never rings the bell. If set to
If set to \fBaudible\fP, readline attempts to ring the terminal's bell.
.TP
.B bind\-tty\-special\-chars (On)
If set to \fBOn\fP, readline attempts to bind the control characters
treated specially by the kernel's terminal driver to their readline
equivalents.
If set to \fBOn\fP (the default), readline attempts to bind the control
characters that are
treated specially by the kernel's terminal driver to their
readline equivalents.
These override the default readline bindings described here.
Type \f(CWstty -a\fP at a bash prompt to see your current terminal settings,
including the special control characters (usually \fBcchars\fP).
.TP
.B blink\-matching\-paren (Off)
If set to \fBOn\fP, readline attempts to briefly move the cursor to an
@@ -9954,6 +9958,10 @@ before execution resumes after the function or script.
.PD 0
.TP
\fBset\fP [\fB+abefhkmnptuvxBCEHPT\fP] [\fB+o\fP \fIoption\-name\fP] [\fB\-\-\fP] [\fB\-\fP] [\fIarg\fP ...]
.TP
\fBset \-o\fP
.TP
\fBset \+o\fP
.PD
Without options, display the name and value of each shell variable
in a format that can be reused as input
@@ -10201,14 +10209,15 @@ Same as
.PP
If
.B \-o
is supplied with no \fIoption\-name\fP, the values of the current options are
printed.
is supplied with no \fIoption\-name\fP,
\fBset\fP prints the current shell option settings.
If
.B +o
is supplied with no \fIoption\-name\fP, a series of
is supplied with no \fIoption\-name\fP,
\fBset\fP prints a series of
.B set
commands to recreate the current option settings is displayed on
the standard output.
commands to recreate the current option settings
on the standard output.
.RE
.TP 8
.B \-p