commit bash-20201030 snapshot

This commit is contained in:
Chet Ramey
2020-11-03 11:01:16 -05:00
parent 22b8a76dd6
commit 94f428da79
12 changed files with 47 additions and 10 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
This document details the changes between this version, bash-5.1-rc2, and
the previous version, bash-5.1-beta.
the previous version, bash-5.1-rc1.
1. Changes to Bash
@@ -599,7 +599,8 @@ e. rl-clear-display: new bindable command that clears the screen and, if
f. New active mark and face feature: when enabled, it will highlight the text
inserted by a bracketed paste (the `active region') and the text found by
incremental and non-incremental history searches.
incremental and non-incremental history searches. This is tied to bracketed
paste and can be disabled by turning off bracketed paste.
g. Readline sets the mark in several additional commands.
+3 -2
View File
@@ -1,5 +1,5 @@
This document details the changes between this version, bash-5.1-rc2, and
the previous version, bash-5.1-beta.
the previous version, bash-5.1-rc1.
1. Changes to Bash
@@ -595,7 +595,8 @@ e. rl-clear-display: new bindable command that clears the screen and, if
f. New active mark and face feature: when enabled, it will highlight the text
inserted by a bracketed paste (the `active region') and the text found by
incremental and non-incremental history searches.
incremental and non-incremental history searches. This is tied to bracketed
paste and can be disabled by turning off bracketed paste.
g. Readline sets the mark in several additional commands.
+20
View File
@@ -9133,3 +9133,23 @@ lib/readline/isearch.c
doc/bash.1,lib/readline/rluser.texi
- enable-bracketed-paste: change to note the the current default is `On'
10/30
-----
lib/glob/glob.c
- wdequote_pathname: if wcsrtombs fails, make sure to check whether it
leaves wpathname set to a non-NULL value before checking whether or
not *wpathname is a null character (indicating an incomplete
conversion). Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972286
with an assist from Bernhard Übelacker <bernhardu@mailbox.org>
11/1
----
lib/readline/isearch.c
- _rl_isearch_dispatch: when checking whether the current character is
one of the isearch `opcodes', only check the multibyte character
member of CXT if we're currently running in a multibyte locale. Don't
assume that other parts of the code will set mb[0] = c and mb[1] = 0.
Report from Detlef Vollmann <dv@vollmann.ch>
[bash-5.1-rc2 frozen]
+1
View File
@@ -1118,6 +1118,7 @@ tests/glob5.sub f
tests/glob6.sub f
tests/glob7.sub f
tests/glob8.sub f
tests/glob9.sub f
tests/glob.right f
tests/globstar.tests f
tests/globstar.right f
+2 -1
View File
@@ -167,7 +167,8 @@ e. rl-clear-display: new bindable command that clears the screen and, if
f. New active mark and face feature: when enabled, it will highlight the text
inserted by a bracketed paste (the `active region') and the text found by
incremental and non-incremental history searches.
incremental and non-incremental history searches. This is tied to bracketed
paste and can be disabled by turning off bracketed paste.
g. Readline sets the mark in several additional commands.
+2 -1
View File
@@ -167,7 +167,8 @@ e. rl-clear-display: new bindable command that clears the screen and, if
f. New active mark and face feature: when enabled, it will highlight the text
inserted by a bracketed paste (the `active region') and the text found by
incremental and non-incremental history searches.
incremental and non-incremental history searches. This is tied to bracketed
paste and can be disabled by turning off bracketed paste.
g. Readline sets the mark in several additional commands.
+1 -1
View File
@@ -484,7 +484,7 @@ wdequote_pathname (pathname)
/* Convert the wide character string into unibyte character set. */
memset (&ps, '\0', sizeof(mbstate_t));
n = wcsrtombs(pathname, (const wchar_t **)&wpathname, len, &ps);
if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell me? */
if (n == (size_t)-1 || (wpathname && *wpathname != 0)) /* what? now you tell me? */
{
wpathname = orig_wpathname;
memset (&ps, '\0', sizeof(mbstate_t));
+3 -1
View File
@@ -418,9 +418,11 @@ add_character:
{
/* If we have a multibyte character, see if it's bound to something that
affects the search. */
if (cxt->mb[1])
#if defined (HANDLE_MULTIBYTE)
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0 && cxt->mb[1])
f = rl_function_of_keyseq (cxt->mb, cxt->keymap, (int *)NULL);
else
#endif
{
f = cxt->keymap[c].function;
if (f == rl_do_lowercase_version)
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/chet/bash/bash-current
BUILD_DIR=/usr/local/build/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
+1 -1
View File
@@ -133,7 +133,7 @@ argv[2] = <abc>
argv[3] = <abd>
argv[4] = <abe>
tmp/l1 tmp/l2 tmp/*4 tmp/l3
./glob.tests: line 64: no match: tmp/*4
./glob.tests: line 65: no match: tmp/*4
argv[1] = <bdir/>
argv[1] = <*>
argv[1] = <a*>
+1
View File
@@ -29,6 +29,7 @@ ${THIS_SH} ./glob5.sub
${THIS_SH} ./glob6.sub
${THIS_SH} ./glob7.sub
${THIS_SH} ./glob8.sub
${THIS_SH} ./glob9.sub
MYDIR=$PWD # save where we are
+9
View File
@@ -0,0 +1,9 @@
LANG=en_US.UTF-8 # safest
: ${TMPDIR:=/var/tmp}
HOME=${TMPDIR}
mkdir ~/ಇಳಿಕೆಗಳು
touch ~/ಇಳಿಕೆಗಳು/{a,b}.txt
echo ~/ಇಳಿಕೆಗಳು/*.txt >/dev/null
rm -rf ${TMPDIR}/ಇಳಿಕೆಗಳು