commit bash-20200707 snapshot

This commit is contained in:
Chet Ramey
2020-07-10 10:08:56 -04:00
parent 9c953962b4
commit 5adc7cd3ec
14 changed files with 75 additions and 54 deletions
+5
View File
@@ -4831,6 +4831,11 @@ execute_function (var, words, flags, fds_to_close, async, subshell)
if (tc && (flags & CMD_IGNORE_RETURN))
tc->flags |= CMD_IGNORE_RETURN;
/* A limited attempt at optimization: shell functions at the end of command
substitutions that are already marked NO_FORK. */
if (tc && (flags & CMD_NO_FORK) && (subshell_environment & SUBSHELL_COMSUB))
optimize_shell_function (tc);
gs = sh_getopt_save_istate ();
if (subshell == 0)
{