7 Bug-Reported-by: Roman Rakus <rrakus@redhat.com>
8 Bug-Reference-ID: <4864B4A0.1060402@redhat.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2008-06/msg00098.html
13 When short-circuiting execution due to the `break' or `continue' builtins,
14 bash did not preserve the value of $?.
18 *** ../bash-3.2-patched/execute_cmd.c 2008-04-28 22:00:24.000000000 -0400
19 --- execute_cmd.c 2008-10-18 14:35:03.000000000 -0400
23 volatile int save_line_number;
26 if (command == 0 || breaking || continuing || read_but_dont_execute)
27 return (EXECUTION_SUCCESS);
29 + if (breaking || continuing)
30 + return (last_command_exit_value);
31 + if (command == 0 || read_but_dont_execute)
32 + return (EXECUTION_SUCCESS);
36 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
37 --- patchlevel.h Mon Oct 16 14:22:54 2006
40 looks for to find the patch level (for the sccs version string). */
42 ! #define PATCHLEVEL 44
44 #endif /* _PATCHLEVEL_H_ */
46 looks for to find the patch level (for the sccs version string). */
48 ! #define PATCHLEVEL 45
50 #endif /* _PATCHLEVEL_H_ */