commit bash-20140822 snapshot

This commit is contained in:
Chet Ramey
2014-08-29 09:16:01 -04:00
parent 581fe5894c
commit 138f0d61d5
6 changed files with 8437 additions and 1 deletions
+11
View File
@@ -819,6 +819,8 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out,
if (asynchronous)
{
DESCRIBE_PID (last_made_pid);
exec_result = EXECUTION_SUCCESS;
invert = 0; /* async commands always succeed */
}
else
#if !defined (JOB_CONTROL)
@@ -958,6 +960,9 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out,
case cm_connection:
exec_result = execute_connection (command, asynchronous,
pipe_in, pipe_out, fds_to_close);
if (asynchronous)
invert = 0; /* XXX */
break;
#if defined (DPAREN_ARITHMETIC)
@@ -2542,6 +2547,12 @@ execute_connection (command, asynchronous, pipe_in, pipe_out, fds_to_close)
line_number_for_err_trap = line_number;
exec_result = execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close);
if (asynchronous)
{
exec_result = EXECUTION_SUCCESS;
invert = 0;
}
if (was_error_trap && ignore_return == 0 && invert == 0 && exec_result != EXECUTION_SUCCESS)
{
last_command_exit_value = exec_result;