7 Bug-Reported-by: Jared Yanovich <slovichon@gmail.com>
8 Bug-Reference-ID: <20140417073654.GB26875@nightderanger.psc.edu>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-04/msg00065.html
13 When PS2 contains a command substitution, here-documents entered in an
14 interactive shell can sometimes cause a segmentation fault.
16 Patch (apply with `patch -p0'):
18 *** ../bash-4.3-patched/shell.h 2012-12-25 21:11:01.000000000 -0500
19 --- shell.h 2014-06-03 09:24:28.000000000 -0400
23 int echo_input_at_read;
29 int echo_input_at_read;
34 *** ../bash-4.3-patched/parse.y 2014-05-14 09:16:40.000000000 -0400
35 --- parse.y 2014-04-30 09:27:59.000000000 -0400
40 ! while (need_here_doc)
42 parser_state |= PST_HEREDOC;
46 ! while (need_here_doc > 0)
48 parser_state |= PST_HEREDOC;
52 ps->expand_aliases = expand_aliases;
53 ps->echo_input_at_read = echo_input_at_read;
54 + ps->need_here_doc = need_here_doc;
60 expand_aliases = ps->expand_aliases;
61 echo_input_at_read = ps->echo_input_at_read;
62 + need_here_doc = ps->need_here_doc;
65 *** ../bash-4.3-patched/y.tab.c 2014-04-07 11:56:12.000000000 -0400
66 --- y.tab.c 2014-07-30 09:55:57.000000000 -0400
71 ! while (need_here_doc)
73 parser_state |= PST_HEREDOC;
77 ! while (need_here_doc > 0)
79 parser_state |= PST_HEREDOC;
83 ps->expand_aliases = expand_aliases;
84 ps->echo_input_at_read = echo_input_at_read;
85 + ps->need_here_doc = need_here_doc;
91 expand_aliases = ps->expand_aliases;
92 echo_input_at_read = ps->echo_input_at_read;
93 + need_here_doc = ps->need_here_doc;
96 *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
97 --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400
100 looks for to find the patch level (for the sccs version string). */
102 ! #define PATCHLEVEL 19
104 #endif /* _PATCHLEVEL_H_ */
106 looks for to find the patch level (for the sccs version string). */
108 ! #define PATCHLEVEL 20
110 #endif /* _PATCHLEVEL_H_ */