7 Bug-Reported-by: Dr. Werner Fink <werner@suse.de>
8 Bug-Reference-ID: <20161107100936.ajnojd7dspirdflf@noether.suse.de>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00054.html
13 Under certain circumstances, a simple command is optimized to eliminate a
14 fork, resulting in an EXIT trap not being executed.
16 Patch (apply with `patch -p0'):
18 *** ../bash-4.4/builtins/evalstring.c 2016-08-11 14:18:51.000000000 -0400
19 --- builtins/evalstring.c 2016-11-08 15:05:07.000000000 -0500
22 *bash_input.location.string == '\0' &&
23 command->type == cm_simple &&
25 signal_is_trapped (EXIT_TRAP) == 0 &&
26 signal_is_trapped (ERROR_TRAP) == 0 &&
28 any_signals_trapped () < 0 &&
30 command->redirects == 0 && command->value.Simple->redirects == 0 &&
31 ((command->flags & CMD_TIME_PIPELINE) == 0) &&
33 *** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
34 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
37 looks for to find the patch level (for the sccs version string). */
39 ! #define PATCHLEVEL 4
41 #endif /* _PATCHLEVEL_H_ */
43 looks for to find the patch level (for the sccs version string). */
45 ! #define PATCHLEVEL 5
47 #endif /* _PATCHLEVEL_H_ */