]>
Commit | Line | Data |
---|---|---|
987826de PM |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 5.0 | |
5 | Patch-ID: bash50-018 | |
6 | ||
7 | Bug-Reported-by: oguzismailuysal@gmail.com | |
8 | Bug-Reference-ID: | |
9 | Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2019-10/msg00098.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | In certain cases, bash does not perform quoted null removal on patterns | |
14 | that are used as part of word expansions such as ${parameter##pattern}, so | |
15 | empty patterns are treated as non-empty. | |
16 | ||
17 | Patch (apply with `patch -p0'): | |
18 | ||
19 | *** ../bash-5.0.17/subst.c 2020-04-02 17:14:58.000000000 -0400 | |
20 | --- subst.c 2020-07-09 15:28:19.000000000 -0400 | |
21 | *************** | |
22 | *** 5113,5116 **** | |
23 | --- 5113,5118 ---- | |
24 | (int *)NULL, (int *)NULL) | |
25 | : (WORD_LIST *)0; | |
26 | + if (l) | |
27 | + word_list_remove_quoted_nulls (l); | |
28 | pat = string_list (l); | |
29 | dispose_words (l); | |
30 | ||
31 | *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 | |
32 | --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 | |
33 | *************** | |
34 | *** 26,30 **** | |
35 | looks for to find the patch level (for the sccs version string). */ | |
36 | ||
37 | ! #define PATCHLEVEL 17 | |
38 | ||
39 | #endif /* _PATCHLEVEL_H_ */ | |
40 | --- 26,30 ---- | |
41 | looks for to find the patch level (for the sccs version string). */ | |
42 | ||
43 | ! #define PATCHLEVEL 18 | |
44 | ||
45 | #endif /* _PATCHLEVEL_H_ */ |