commit bash-20041007 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:37:49 -05:00
parent 7a2f2783f4
commit cac4cdbf5e
26 changed files with 2215 additions and 177 deletions
+8 -1
View File
@@ -4351,7 +4351,7 @@ command_substitute (string, quoted)
char *string;
int quoted;
{
pid_t pid, old_pid, old_pipeline_pgrp;
pid_t pid, old_pid, old_pipeline_pgrp, old_async_pid;
char *istring;
int result, fildes[2], function_value, pflags, rc;
@@ -4399,7 +4399,14 @@ command_substitute (string, quoted)
cleanup_the_pipeline ();
#endif
old_async_pid = last_asynchronous_pid;
#if 0
pid = make_child ((char *)NULL, 0);
#else
pid = make_child ((char *)NULL, subshell_environment&SUBSHELL_ASYNC);
#endif
last_asynchronous_pid = old_async_pid;
if (pid == 0)
/* Reset the signal handlers in the child, but don't free the
trap strings. */