blob: 655c7ec8b5b89387908bd492a920b976ecc363f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
BASH PATCH REPORT
=================
Bash-Release: 5.1
Patch-ID: bash51-011
Bug-Reported-by: Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
Bug-Reference-ID: <CAALKErFrm+yuwy=ioK+RmjCiwxTDmzeMFWqLF2BEWYtkGS5UFQ@mail.gmail.com>
Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-11/msg00064.html
Bug-Description:
When reading a compound assignment, and running it through the parser to
split it into words, we need to save and restore any alias we're currently
expanding.
Patch (apply with `patch -p0'):
*** ../bash-5.1-patched/parse.y 2020-11-28 12:10:06.000000000 -0500
--- parse.y 2021-10-13 11:04:27.000000000 -0400
***************
*** 6494,6501 ****
push_stream (1);
- #if 0 /* TAG: bash-5.2 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> 11/17/2020 */
if (ea = expanding_alias ())
parser_save_alias ();
- #endif
last_read_token = WORD; /* WORD to allow reserved words here */
current_command_line_count = 0;
--- 6494,6499 ----
***************
*** 6532,6539 ****
pop_stream ();
- #if 0 /* TAG: bash-5.2 */
if (ea)
parser_restore_alias ();
- #endif
#if defined (HISTORY)
--- 6530,6535 ----
*** ../bash-5.1-patched/y.tab.c 2020-11-28 12:17:19.000000000 -0500
--- y.tab.c 2021-11-17 10:47:35.000000000 -0500
***************
*** 8788,8795 ****
push_stream (1);
- #if 0 /* TAG: bash-5.2 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> 11/17/2020 */
if (ea = expanding_alias ())
parser_save_alias ();
- #endif
last_read_token = WORD; /* WORD to allow reserved words here */
current_command_line_count = 0;
--- 8777,8782 ----
***************
*** 8826,8833 ****
pop_stream ();
- #if 0 /* TAG: bash-5.2 */
if (ea)
parser_restore_alias ();
- #endif
#if defined (HISTORY)
--- 8813,8818 ----
*** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
--- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
***************
*** 26,30 ****
looks for to find the patch level (for the sccs version string). */
! #define PATCHLEVEL 10
#endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
looks for to find the patch level (for the sccs version string). */
! #define PATCHLEVEL 11
#endif /* _PATCHLEVEL_H_ */
|