commit bash-20070426 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:07:10 -05:00
parent c184f64511
commit b709b946e4
17 changed files with 11208 additions and 7208 deletions
+7 -1
View File
@@ -3496,13 +3496,18 @@ execute_subshell_builtin_or_function (words, redirects, builtin, var,
else
{
r = execute_builtin (builtin, words, flags, 1);
fflush (stdout);
if (r == EX_USAGE)
r = EX_BADUSAGE;
exit (r);
}
}
else
exit (execute_function (var, words, flags, fds_to_close, async, 1));
{
r = execute_function (var, words, flags, fds_to_close, async, 1);
fflush (stdout);
exit (r);
}
}
/* Execute a builtin or function in the current shell context. If BUILTIN
@@ -3562,6 +3567,7 @@ execute_builtin_or_function (words, builtin, var, redirects,
result = execute_function (var, words, flags, fds_to_close, 0, 0);
/* We do this before undoing the effects of any redirections. */
fflush (stdout);
if (ferror (stdout))
clearerr (stdout);