]>
Commit | Line | Data |
---|---|---|
fb8ce753 AM |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 4.0 | |
5 | Patch-ID: bash40-022 | |
6 | ||
7 | Bug-Reported-by: Bernd Eggink <monoped@sudrala.de> | |
8 | Bug-Reference-ID: <49E65407.5010206@sudrala.de> | |
9 | Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-04/msg00118.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | When parsing case statements in command substitutions, the shell did not | |
14 | note that a newline is a shell metacharacter and can legally be followed | |
15 | by a reserved word (e.g., `esac'). | |
16 | ||
17 | Patch: | |
18 | ||
19 | *** ../bash-4.0-patched/parse.y 2009-03-08 21:24:47.000000000 -0400 | |
20 | --- parse.y 2009-04-15 22:27:56.000000000 -0400 | |
21 | *************** | |
22 | *** 3355,3359 **** | |
23 | ||
24 | /* Meta-characters that can introduce a reserved word. Not perfect yet. */ | |
25 | ! if MBTEST((tflags & LEX_RESWDOK) == 0 && (tflags & LEX_CKCASE) && (tflags & LEX_INCOMMENT) == 0 && shellmeta(ch)) | |
26 | { | |
27 | /* Add this character. */ | |
28 | --- 3375,3379 ---- | |
29 | ||
30 | /* Meta-characters that can introduce a reserved word. Not perfect yet. */ | |
31 | ! if MBTEST((tflags & LEX_RESWDOK) == 0 && (tflags & LEX_CKCASE) && (tflags & LEX_INCOMMENT) == 0 && (shellmeta(ch) || ch == '\n')) | |
32 | { | |
33 | /* Add this character. */ | |
34 | *** ../bash-4.0/patchlevel.h 2009-01-04 14:32:40.000000000 -0500 | |
35 | --- patchlevel.h 2009-02-22 16:11:31.000000000 -0500 | |
36 | *************** | |
37 | *** 26,30 **** | |
38 | looks for to find the patch level (for the sccs version string). */ | |
39 | ||
40 | ! #define PATCHLEVEL 21 | |
41 | ||
42 | #endif /* _PATCHLEVEL_H_ */ | |
43 | --- 26,30 ---- | |
44 | looks for to find the patch level (for the sccs version string). */ | |
45 | ||
46 | ! #define PATCHLEVEL 22 | |
47 | ||
48 | #endif /* _PATCHLEVEL_H_ */ |