-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
child_process: fork() with shell is impossible? #13983
Copy link
Copy link
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Currently, the doc says nothing if
fork()is executed with shell, also noshelloption is mentioned. However,fork()is based uponspawn()and almost all the options are transferred as is. So, withoutshelloption we have the defaultspawn()behavior (without shell):%temp%However, if
shelloption is set totrue,fork()becomes broken in at least two ways:So there are some questions:
fork()and shell interaction (andshelloption) and fix these issues?shelloption before spawning (and maybe somehow document this)?