new readline "fetch-history" bindable command; declare -p output change

This commit is contained in:
Chet Ramey
2021-04-01 17:25:48 -04:00
parent 65822e5011
commit 8f485ff84c
17 changed files with 3065 additions and 2786 deletions
+17 -11
View File
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
.\" Last Change: Tue Mar 16 14:35:58 EDT 2021
.\" Last Change: Wed Mar 31 11:01:34 EDT 2021
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2021 March 16" "GNU Bash 5.1"
.TH BASH 1 "2021 March 30" "GNU Bash 5.1"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -1212,9 +1212,9 @@ not been present.
.PP
A double-quoted string preceded by a dollar sign (\fB$\fP\(dq\fIstring\fP\(dq)
will cause the string to be translated according to the current locale.
The \fIgettext\fP infrastructure performs the message catalog lookup and
translation, using the \fBLC_MESSAGES\fP and \fBTEXTDOMAIN\fP shell
variables.
The \fIgettext\fP infrastructure performs the lookup and
translation, using the \fBLC_MESSAGES\fP, \fBTEXTDOMAINDIR\fP,
and \fBTEXTDOMAIN\fP shell variables.
If the current locale is \fBC\fP or \fBPOSIX\fP,
or if there are no translations available,
the dollar sign is ignored.
@@ -6283,6 +6283,18 @@ Move to the first line in the history.
Move to the end of the input history, i.e., the line currently being
entered.
.TP
.B operate\-and\-get\-next (C\-o)
Accept the current line for execution and fetch the next line
relative to the current line from the history for editing.
A numeric argument, if supplied, specifies the history entry to use instead
of the current line.
.TP
.B
fetch\-history
With a numeric argument, fetch that entry from the history list
and make it the current line.
Without an argument, move back to the first entry in the history list.
.TP
.B reverse\-search\-history (C\-r)
Search backward starting at the current line and moving `up' through
the history as necessary. This is an incremental search.
@@ -6382,12 +6394,6 @@ Perform history and alias expansion on the current line.
.B insert\-last\-argument (M\-.\^, M\-_\^)
A synonym for \fByank\-last\-arg\fP.
.TP
.B operate\-and\-get\-next (C\-o)
Accept the current line for execution and fetch the next line
relative to the current line from the history for editing.
A numeric argument, if supplied, specifies the history entry to use instead
of the current line.
.TP
.B edit\-and\-execute\-command (C\-x C\-e)
Invoke an editor on the current command line, and execute the result as shell
commands.