Skip to content

Add child_process.spawnShell #1009

@storzinc

Description

@storzinc

In the child_process module currently there is two flavors of exec function: exec and execFile, which is good, but for spawn, there is only one version, would've been great to have something like child_process.spawnShell. Currently I use this code to emulate it:

child_process.spawn('cmd', ['/s', '/c', command], {windowsVerbatimArguments:true})

but it is platform specific and requires the use of undocumented flag windowsVerbatimArguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.feature requestIssues that request new features to be added to Node.js.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions