7 Bug-Reported-by: Steffen Kiess <s-kiess@web.de>
8 Bug-Reference-ID: <1223929957.5383.6.camel@fips>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2008-10/msg00047.html
13 When invoked as `bash -c', bash did not execute an EXIT trap when the last
14 command in the executed list was a command run from the file system.
18 *** /Users/chet/src/bash/bash-3.2-patched/builtins/evalstring.c 2006-07-28 15:12:16.000000000 -0400
19 --- builtins/evalstring.c 2008-11-13 18:38:45.000000000 -0500
23 * we're not running a trap AND
24 * we have parsed the full command (string == '\0') AND
25 + * we're not going to run the exit trap AND
26 * we have a simple command without redirections AND
27 * the command is not being timed AND
30 *bash_input.location.string == '\0' &&
31 command->type == cm_simple &&
32 ! !command->redirects && !command->value.Simple->redirects &&
33 ((command->flags & CMD_TIME_PIPELINE) == 0) &&
34 ((command->flags & CMD_INVERT_RETURN) == 0))
36 *bash_input.location.string == '\0' &&
37 command->type == cm_simple &&
38 ! signal_is_trapped (EXIT_TRAP) == 0 &&
39 ! command->redirects == 0 && command->value.Simple->redirects == 0 &&
40 ((command->flags & CMD_TIME_PIPELINE) == 0) &&
41 ((command->flags & CMD_INVERT_RETURN) == 0))
42 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
43 --- patchlevel.h Mon Oct 16 14:22:54 2006
46 looks for to find the patch level (for the sccs version string). */
48 ! #define PATCHLEVEL 47
50 #endif /* _PATCHLEVEL_H_ */
52 looks for to find the patch level (for the sccs version string). */
54 ! #define PATCHLEVEL 48
56 #endif /* _PATCHLEVEL_H_ */