Blame bash-4.0-shell_pipelines_handling.patch
|
Roman Rakus |
9111522 |
diff -up bash-4.0-rc1/execute_cmd.c.shell_pipelines_handling bash-4.0-rc1/execute_cmd.c
|
|
Roman Rakus |
9111522 |
--- bash-4.0-rc1/execute_cmd.c.shell_pipelines_handling 2009-02-11 12:56:13.000000000 +0100
|
|
Roman Rakus |
9111522 |
+++ bash-4.0-rc1/execute_cmd.c 2009-02-11 12:57:20.000000000 +0100
|
|
Roman Rakus |
9111522 |
@@ -756,7 +756,7 @@ execute_command_internal (command, async
|
|
Roman Rakus |
9111522 |
the presence of a pipeline, and (until Posix changes things), a
|
|
Roman Rakus |
9111522 |
pipeline failure should not cause the parent shell to exit on an
|
|
Roman Rakus |
9111522 |
unsuccessful return status, even in the presence of errexit.. */
|
|
Roman Rakus |
9111522 |
- if (was_error_trap && ignore_return == 0 && invert == 0 && pipe_in == NO_PIPE && pipe_out == NO_PIPE && exec_result != EXECUTION_SUCCESS)
|
|
Roman Rakus |
9111522 |
+ if (was_error_trap && ignore_return == 0 && invert == 0 && exec_result != EXECUTION_SUCCESS)
|
|
Roman Rakus |
9111522 |
{
|
|
Roman Rakus |
9111522 |
last_command_exit_value = exec_result;
|
|
Roman Rakus |
9111522 |
run_error_trap ();
|
|
Roman Rakus |
9111522 |
@@ -764,7 +764,7 @@ execute_command_internal (command, async
|
|
Roman Rakus |
9111522 |
|
|
Roman Rakus |
9111522 |
if (ignore_return == 0 && invert == 0 &&
|
|
Roman Rakus |
9111522 |
((posixly_correct && interactive == 0 && special_builtin_failed) ||
|
|
Roman Rakus |
9111522 |
- (exit_immediately_on_error && pipe_in == NO_PIPE && pipe_out == NO_PIPE && exec_result != EXECUTION_SUCCESS)))
|
|
Roman Rakus |
9111522 |
+ (exit_immediately_on_error && exec_result != EXECUTION_SUCCESS)))
|
|
Roman Rakus |
9111522 |
{
|
|
Roman Rakus |
9111522 |
last_command_exit_value = exec_result;
|
|
Roman Rakus |
9111522 |
run_pending_traps ();
|