commit bash-20080507 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:23:30 -05:00
parent 4ac1ff9885
commit f13513ff9e
33 changed files with 4651 additions and 12105 deletions
+4 -2
View File
@@ -3137,8 +3137,10 @@ execute_builtin (builtin, words, flags, subshell)
flags that will exit the shell on an error if -e is set. If the
eval builtin is being called, and we're supposed to ignore the exit
value of the command, we turn the -e flag off ourselves, then
restore it when the command completes. */
if (subshell == 0 && builtin == eval_builtin && (flags & CMD_IGNORE_RETURN))
restore it when the command completes. This is also a problem (as
below) for the command and source/. builtins. */
if (subshell == 0 && (flags & CMD_IGNORE_RETURN) &&
(builtin == eval_builtin || builtin == command_builtin || builtin == source_builtin))
{
begin_unwind_frame ("eval_builtin");
unwind_protect_int (exit_immediately_on_error);