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
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').
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
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))
27 /* Add this character. */
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'))
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
38 looks for to find the patch level (for the sccs version string). */
40 ! #define PATCHLEVEL 21
42 #endif /* _PATCHLEVEL_H_ */
44 looks for to find the patch level (for the sccs version string). */
46 ! #define PATCHLEVEL 22
48 #endif /* _PATCHLEVEL_H_ */