]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/bash/bash52-008
wavemon: Update to version 0.9.5
[people/pmueller/ipfire-2.x.git] / src / patches / bash / bash52-008
1 BASH PATCH REPORT
2 =================
3
4 Bash-Release: 5.2
5 Patch-ID: bash52-008
6
7 Bug-Reported-by: Glenn Jackman <glenn.jackman@gmail.com>
8 Bug-Reference-ID: <CAFC8ewQDx7hzNJzveuJ5o4FWo=ij7MzckiJVN_6NXjp504QZeg@mail.gmail.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00095.html
10
11 Bug-Description:
12
13 Array subscript expansion can inappropriately quote brackets if the expression
14 contains < or >.
15
16 Patch (apply with `patch -p0'):
17
18 *** ../bash-20221015/subst.c 2022-10-18 10:47:33.000000000 -0500
19 --- subst.c 2022-10-20 11:41:07.000000000 -0500
20 ***************
21 *** 3820,3823 ****
22 --- 3820,3827 ----
23 #endif
24
25 + /* We don't perform process substitution in arithmetic expressions, so don't
26 + bother checking for it. */
27 + #define ARITH_EXP_CHAR(s) (s == '$' || s == '`' || s == CTLESC || s == '~')
28 +
29 /* If there are any characters in STRING that require full expansion,
30 then call FUNC to expand STRING; otherwise just perform quote
31 ***************
32 *** 4029,4033 ****
33 while (string[i])
34 {
35 ! if (EXP_CHAR (string[i]))
36 break;
37 else if (string[i] == '\'' || string[i] == '\\' || string[i] == '"')
38 --- 4033,4037 ----
39 while (string[i])
40 {
41 ! if (ARITH_EXP_CHAR (string[i]))
42 break;
43 else if (string[i] == '\'' || string[i] == '\\' || string[i] == '"')
44 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
45 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
46 ***************
47 *** 26,30 ****
48 looks for to find the patch level (for the sccs version string). */
49
50 ! #define PATCHLEVEL 7
51
52 #endif /* _PATCHLEVEL_H_ */
53 --- 26,30 ----
54 looks for to find the patch level (for the sccs version string). */
55
56 ! #define PATCHLEVEL 8
57
58 #endif /* _PATCHLEVEL_H_ */