commit bash-20051208 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 22:42:51 -05:00
parent 0fdd7e94ff
commit af12dacd16
49 changed files with 93143 additions and 20529 deletions
+19 -1
View File
@@ -1,4 +1,4 @@
/* execute_command.c -- Execute a COMMAND structure. */
/* execute_cmd.c -- Execute a COMMAND structure. */
/* Copyright (C) 1987-2005 Free Software Foundation, Inc.
@@ -865,6 +865,24 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out,
? EXECUTION_FAILURE
: EXECUTION_SUCCESS;
#if defined (DPAREN_ARITHMETIC) || defined (COND_COMMAND)
/* This is where we set PIPESTATUS from the exit status of the appropriate
compound commands (the ones that look enough like simple commands to
cause confusion). We might be able to optimize by not doing this if
subshell_environment != 0. */
switch (command->type)
{
# if defined (DPAREN_ARITHMETIC)
case cm_arith:
# endif
# if defined (COND_COMMAND)
case cm_cond:
# endif
set_pipestatus_from_exit (exec_result);
break;
}
#endif
last_command_exit_value = exec_result;
run_pending_traps ();
#if 0