fix for optimizing forks away if bash -ic command is executed

This commit is contained in:
Chet Ramey
2023-06-12 17:46:30 -04:00
parent a629483b0e
commit d44a45afbc
8 changed files with 41 additions and 1 deletions
+1
View File
@@ -127,6 +127,7 @@ should_suppress_fork (COMMAND *command)
return (startup_state == 2 && parse_and_execute_level == 1 &&
*bash_input.location.string == '\0' &&
parser_expanding_alias () == 0 &&
job_control_active_p () == 0 &&
should_optimize_fork (command, subshell));
}