@@ -163,9 +163,9 @@ exec('echo "The \\$HOME variable is $HOME"');
163
163
// The $HOME variable is escaped in the first instance, but not in the second
164
164
```
165
165
166
- ** Note: Never pass unsanitised user input to this function. Any input
166
+ * Note* : Never pass unsanitised user input to this function. Any input
167
167
containing shell metacharacters may be used to trigger arbitrary command
168
- execution.**
168
+ execution.
169
169
170
170
``` js
171
171
const exec = require (' child_process' ).exec ;
@@ -211,8 +211,8 @@ If `timeout` is greater than `0`, the parent will send the signal
211
211
identified by the ` killSignal ` property (the default is ` 'SIGTERM' ` ) if the
212
212
child runs longer than ` timeout ` milliseconds.
213
213
214
- * Note: Unlike the exec(3) POSIX system call, ` child_process.exec() ` does not
215
- replace the existing process and uses a shell to execute the command.*
214
+ * Note* : Unlike the exec(3) POSIX system call, ` child_process.exec() ` does not
215
+ replace the existing process and uses a shell to execute the command.
216
216
217
217
If this method is invoked as its [ ` util.promisify() ` ] [ ] ed version, it returns
218
218
a Promise for an object with ` stdout ` and ` stderr ` properties.
@@ -348,8 +348,8 @@ parent process using the file descriptor (fd) identified using the
348
348
environment variable ` NODE_CHANNEL_FD ` on the child process. The input and
349
349
output on this fd is expected to be line delimited JSON objects.
350
350
351
- * Note: Unlike the fork(2) POSIX system call, ` child_process.fork() ` does
352
- not clone the current process.*
351
+ * Note* : Unlike the fork(2) POSIX system call, ` child_process.fork() ` does
352
+ not clone the current process.
353
353
354
354
### child_process.spawn(command[ , args] [ , options ] )
355
355
<!-- YAML
@@ -387,9 +387,9 @@ The `child_process.spawn()` method spawns a new process using the given
387
387
` command ` , with command line arguments in ` args ` . If omitted, ` args ` defaults
388
388
to an empty array.
389
389
390
- ** Note: If the ` shell ` option is enabled, do not pass unsanitised user input to
390
+ * Note* : If the ` shell ` option is enabled, do not pass unsanitised user input to
391
391
this function. Any input containing shell metacharacters may be used to
392
- trigger arbitrary command execution.**
392
+ trigger arbitrary command execution.
393
393
394
394
A third argument may be used to specify additional options, with these defaults:
395
395
@@ -476,13 +476,13 @@ child.on('error', (err) => {
476
476
});
477
477
```
478
478
479
- * Note: Certain platforms (macOS, Linux) will use the value of ` argv[0] ` for the
480
- process title while others (Windows, SunOS) will use ` command ` .*
479
+ * Note* : Certain platforms (macOS, Linux) will use the value of ` argv[0] ` for
480
+ the process title while others (Windows, SunOS) will use ` command ` .
481
481
482
- * Note: Node.js currently overwrites ` argv[0] ` with ` process.execPath ` on
482
+ * Note* : Node.js currently overwrites ` argv[0] ` with ` process.execPath ` on
483
483
startup, so ` process.argv[0] ` in a Node.js child process will not match the
484
484
` argv0 ` parameter passed to ` spawn ` from the parent, retrieve it with the
485
- ` process.argv0 ` property instead.*
485
+ ` process.argv0 ` property instead.
486
486
487
487
#### options.detached
488
488
<!-- YAML
@@ -673,9 +673,11 @@ The `child_process.execFileSync()` method is generally identical to
673
673
[ ` child_process.execFile() ` ] [ ] with the exception that the method will not return
674
674
until the child process has fully closed. When a timeout has been encountered
675
675
and ` killSignal ` is sent, the method won't return until the process has
676
- completely exited. * Note that if the child process intercepts and handles
677
- the ` SIGTERM ` signal and does not exit, the parent process will still wait
678
- until the child process has exited.*
676
+ completely exited.
677
+
678
+ * Note* : If the child process intercepts and handles the ` SIGTERM ` signal and
679
+ does not exit, the parent process will still wait until the child process has
680
+ exited.
679
681
680
682
If the process times out, or has a non-zero exit code, this method *** will***
681
683
throw. The [ ` Error ` ] [ ] object will contain the entire result from
@@ -729,9 +731,9 @@ If the process times out, or has a non-zero exit code, this method ***will***
729
731
throw. The [ ` Error ` ] [ ] object will contain the entire result from
730
732
[ ` child_process.spawnSync() ` ] [ ]
731
733
732
- ** Note: Never pass unsanitised user input to this function. Any input
734
+ * Note* : Never pass unsanitised user input to this function. Any input
733
735
containing shell metacharacters may be used to trigger arbitrary command
734
- execution.**
736
+ execution.
735
737
736
738
### child_process.spawnSync(command[ , args] [ , options ] )
737
739
<!-- YAML
@@ -789,9 +791,9 @@ completely exited. Note that if the process intercepts and handles the
789
791
` SIGTERM ` signal and doesn't exit, the parent process will wait until the child
790
792
process has exited.
791
793
792
- ** Note: If the ` shell ` option is enabled, do not pass unsanitised user input to
793
- this function. Any input containing shell metacharacters may be used to
794
- trigger arbitrary command execution.**
794
+ * Note* : If the ` shell ` option is enabled, do not pass unsanitised user input
795
+ to this function. Any input containing shell metacharacters may be used to
796
+ trigger arbitrary command execution.
795
797
796
798
## Class: ChildProcess
797
799
<!-- YAML
@@ -1166,8 +1168,8 @@ tracking when the socket is destroyed. To indicate this, the `.connections`
1166
1168
property becomes ` null ` . It is recommended not to use ` .maxConnections ` when
1167
1169
this occurs.
1168
1170
1169
- * Note: this function uses [ ` JSON.stringify() ` ] [ ] internally to serialize the
1170
- ` message ` .*
1171
+ * Note* : This function uses [ ` JSON.stringify() ` ] [ ] internally to serialize the
1172
+ ` message ` .
1171
1173
1172
1174
### child.stderr
1173
1175
<!-- YAML
0 commit comments