mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-01 01:20:00 +02:00
commit bash-20210107 snapshot
This commit is contained in:
@@ -9302,3 +9302,16 @@ builtins/declare.def
|
||||
- declare_internal: if we build a new variable name by expanding the
|
||||
value of a nameref variable, make sure to chop the `+' in a `+='
|
||||
off before going on
|
||||
|
||||
1/7
|
||||
---
|
||||
doc/{bash.1,bashref.texi}
|
||||
- bind: add an example to the synopsis making it clear that you can
|
||||
use any readline command line as a non-option argument, as it says
|
||||
in the text. From a report from Dan Jacobson <jidanni@jidanni.org>
|
||||
|
||||
1/12
|
||||
----
|
||||
locale.c
|
||||
- local_shiftstates -> locale_shiftsates in the non-multibyte code
|
||||
branch. Reported by Henry Bent <henry.r.bent@gmail.com>
|
||||
|
||||
+2
-1
@@ -1217,8 +1217,9 @@ array_expand_index (var, s, len, flags)
|
||||
t = expand_arith_string (exp, Q_DOUBLE_QUOTES|Q_ARITH|Q_ARRAYSUB); /* XXX - Q_ARRAYSUB for future use */
|
||||
else
|
||||
t = exp;
|
||||
#endif
|
||||
#else
|
||||
t = expand_arith_string (exp, Q_DOUBLE_QUOTES|Q_ARITH|Q_ARRAYSUB); /* XXX - Q_ARRAYSUB for future use */
|
||||
#endif
|
||||
savecmd = this_command_name;
|
||||
this_command_name = (char *)NULL;
|
||||
val = evalexp (t, EXP_EXPANDED, &expok); /* XXX - was 0 but we expanded exp already */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+9
-5
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Wed Sep 23 09:28:31 EDT 2020
|
||||
.\" Last Change: Thu Jan 7 15:00:44 EST 2021
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2020 October 29" "GNU Bash 5.1"
|
||||
.TH BASH 1 "2021 January 7" "GNU Bash 5.1"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -50,8 +50,8 @@ bash \- GNU Bourne-Again SHell
|
||||
[options]
|
||||
[command_string | file]
|
||||
.SH COPYRIGHT
|
||||
.if n Bash is Copyright (C) 1989-2020 by the Free Software Foundation, Inc.
|
||||
.if t Bash is Copyright \(co 1989-2020 by the Free Software Foundation, Inc.
|
||||
.if n Bash is Copyright (C) 1989-2021 by the Free Software Foundation, Inc.
|
||||
.if t Bash is Copyright \(co 1989-2021 by the Free Software Foundation, Inc.
|
||||
.SH DESCRIPTION
|
||||
.B Bash
|
||||
is an \fBsh\fR-compatible command language interpreter that
|
||||
@@ -7496,6 +7496,8 @@ or was started without job control.
|
||||
\fBbind\fP [\fB\-m\fP \fIkeymap\fP] \fIkeyseq\fP:\fIfunction\-name\fP
|
||||
.TP
|
||||
\fBbind\fP [\fB\-m\fP \fIkeymap\fP] \fIkeyseq\fP:\fIreadline\-command\fP
|
||||
.TP
|
||||
\fBbind\fP \fIreadline-command-line\fP
|
||||
.PD
|
||||
Display current
|
||||
.B readline
|
||||
@@ -7504,7 +7506,9 @@ key and function bindings, bind a key sequence to a
|
||||
function or macro, or set a
|
||||
.B readline
|
||||
variable.
|
||||
Each non-option argument is a command as it would appear in
|
||||
Each non-option argument is a command as it would appear in a
|
||||
.B readline
|
||||
initialization file such as
|
||||
.IR .inputrc ,
|
||||
but each binding or command must be passed as a separate argument;
|
||||
e.g., '"\eC\-x\eC\-r": re\-read\-init\-file'.
|
||||
|
||||
+2
-1
@@ -14,7 +14,7 @@ This is Edition @value{EDITION}, last updated @value{UPDATED},
|
||||
of @cite{The GNU Bash Reference Manual},
|
||||
for @code{Bash}, Version @value{VERSION}.
|
||||
|
||||
Copyright @copyright{} 1988--2020 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1988--2021 Free Software Foundation, Inc.
|
||||
|
||||
@quotation
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
@@ -4038,6 +4038,7 @@ bind [-m @var{keymap}] -f @var{filename}
|
||||
bind [-m @var{keymap}] -x @var{keyseq:shell-command}
|
||||
bind [-m @var{keymap}] @var{keyseq:function-name}
|
||||
bind [-m @var{keymap}] @var{keyseq:readline-command}
|
||||
bind @var{readline-command-line}
|
||||
@end example
|
||||
|
||||
Display current Readline (@pxref{Command Line Editing})
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
@ignore
|
||||
Copyright (C) 1988-2020 Free Software Foundation, Inc.
|
||||
Copyright (C) 1988-2021 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Mon Dec 21 09:43:57 EST 2020
|
||||
@set LASTCHANGE Thu Jan 7 15:01:29 EST 2021
|
||||
|
||||
@set EDITION 5.1
|
||||
@set VERSION 5.1
|
||||
|
||||
@set UPDATED 21 December 2020
|
||||
@set UPDATED-MONTH December 2020
|
||||
@set UPDATED 7 January 2021
|
||||
@set UPDATED-MONTH January 2021
|
||||
|
||||
@@ -3011,8 +3011,17 @@ eval_arith_for_expr (l, okp)
|
||||
WORD_LIST *new;
|
||||
intmax_t expresult;
|
||||
int r;
|
||||
char *expr, *temp;
|
||||
|
||||
#if 0 /* TAG: bash-5.2 */
|
||||
expr = l->next ? string_list (l) : savestring (l->word->word);
|
||||
temp = expand_arith_string (expr, Q_DOUBLE_QUOTES|Q_ARITH);
|
||||
free (expr);
|
||||
new = make_word_list (make_word (temp), (WORD_LIST *)NULL);
|
||||
free (temp);
|
||||
#else
|
||||
new = expand_words_no_vars (l);
|
||||
#endif
|
||||
if (new)
|
||||
{
|
||||
if (echo_command_at_execute)
|
||||
|
||||
@@ -91,7 +91,7 @@ set_default_locale ()
|
||||
#if defined (HANDLE_MULTIBYTE)
|
||||
locale_shiftstates = mblen ((char *)NULL, 0);
|
||||
#else
|
||||
local_shiftstates = 0;
|
||||
locale_shiftstates = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ set_default_locale_vars ()
|
||||
# if defined (HANDLE_MULTIBYTE)
|
||||
locale_shiftstates = mblen ((char *)NULL, 0);
|
||||
# else
|
||||
local_shiftstates = 0;
|
||||
locale_shiftstates = 0;
|
||||
# endif
|
||||
|
||||
u32reset ();
|
||||
@@ -226,7 +226,7 @@ set_locale_var (var, value)
|
||||
# if defined (HANDLE_MULTIBYTE)
|
||||
locale_shiftstates = mblen ((char *)NULL, 0);
|
||||
# else
|
||||
local_shiftstates = 0;
|
||||
locale_shiftstates = 0;
|
||||
# endif
|
||||
u32reset ();
|
||||
return r;
|
||||
@@ -250,7 +250,7 @@ set_locale_var (var, value)
|
||||
#if defined (HANDLE_MULTIBYTE)
|
||||
locale_shiftstates = mblen ((char *)NULL, 0);
|
||||
#else
|
||||
local_shiftstates = 0;
|
||||
locale_shiftstates = 0;
|
||||
#endif
|
||||
u32reset ();
|
||||
}
|
||||
@@ -391,7 +391,7 @@ reset_locale_vars ()
|
||||
# if defined (HANDLE_MULTIBYTE)
|
||||
locale_shiftstates = mblen ((char *)NULL, 0);
|
||||
# else
|
||||
local_shiftstates = 0;
|
||||
locale_shiftstates = 0;
|
||||
# endif
|
||||
u32reset ();
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
/* patchlevel.h -- current bash patch level */
|
||||
|
||||
/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
||||
looks for to find the patch level (for the sccs version string). */
|
||||
|
||||
#define PATCHLEVEL 0
|
||||
#define PATCHLEVEL 4
|
||||
|
||||
#endif /* _PATCHLEVEL_H_ */
|
||||
|
||||
Reference in New Issue
Block a user