7 Bug-Reported-by: Siteshwar Vashisht <svashisht@redhat.com>
8 Bug-Reference-ID: <1508861265.9523642.1484659442561.JavaMail.zimbra@redhat.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2017-01/msg00026.html
13 If a here-document contains a command substitution, the command substitution
14 can get access to the file descriptor used to write the here-document.
16 Patch (apply with `patch -p0'):
18 *** ../bash-4.4-patched/redir.c 2016-06-02 20:22:24.000000000 -0400
19 --- redir.c 2017-01-17 13:23:40.000000000 -0500
25 + SET_CLOSE_ON_EXEC (fd);
27 errno = r = 0; /* XXX */
28 /* write_here_document returns 0 on success, errno on failure. */
29 *** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
30 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
33 looks for to find the patch level (for the sccs version string). */
35 ! #define PATCHLEVEL 12
37 #endif /* _PATCHLEVEL_H_ */
39 looks for to find the patch level (for the sccs version string). */
41 ! #define PATCHLEVEL 13
43 #endif /* _PATCHLEVEL_H_ */