File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3988,6 +3988,30 @@ Instantiating classes without the `new` qualifier exported by the `node:http` mo
3988
3988
It is recommended to use the ` new ` qualifier instead. This applies to all http classes, such as
3989
3989
` OutgoingMessage ` , ` IncomingMessage ` , ` ServerResponse ` and ` ClientRequest ` .
3990
3990
3991
+ ### DEP0196: Calling ` node:child_process ` functions with ` options.shell ` as an empty string
3992
+
3993
+ <!-- YAML
3994
+ changes:
3995
+ - version: REPLACEME
3996
+ pr-url: https://github.com/nodejs/node/pull/TODO
3997
+ description: Documentation-only deprecation.
3998
+ -->
3999
+
4000
+ Type: Documentation-only
4001
+
4002
+ Calling the process-spawning functions with ` { shell: '' } ` is almost certainly
4003
+ unintentional, and can cause aberrant behavior.
4004
+
4005
+ To make [ ` child_process.execFile ` ] [ ] or [ ` child_process.spawn ` ] [ ] invoke the
4006
+ default shell, use ` { shell: true } ` . If the intention is not to invoke a shell
4007
+ (default behavior), either omit the ` shell ` option, or set it to ` false ` or a
4008
+ nullish value.
4009
+
4010
+ To make [ ` child_process.exec ` ] [ ] invoke the default shell, either omit the
4011
+ ` shell ` option, or set it to a nullish value. If the intention is not to invoke
4012
+ a shell, use [ ` child_process.execFile ` ] [ ] instead.
4013
+
4014
+
3991
4015
[ DEP0142 ] : #dep0142-repl_builtinlibs
3992
4016
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3993
4017
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
You can’t perform that action at this time.
0 commit comments