@@ -704,10 +704,9 @@ until the process has completely exited. That is to say, if the process handles
704
704
the ` SIGTERM ` signal and doesn't exit, your process will wait until the child
705
705
process has exited.
706
706
707
- ### child_process.execFileSync(file [ , args ] [ , options ] )
707
+ ### child_process.execSync(command [ , options] )
708
708
709
- * ` file ` {String} The filename of the program to run
710
- * ` args ` {Array} List of string arguments
709
+ * ` command ` {String} The command to run
711
710
* ` options ` {Object}
712
711
* ` cwd ` {String} Current working directory of the child process
713
712
* ` input ` {String|Buffer} The value which will be passed as stdin to the spawned process
@@ -725,7 +724,7 @@ process has exited.
725
724
* ` encoding ` {String} The encoding used for all stdio inputs and outputs. (Default: 'buffer')
726
725
* return: {Buffer|String} The stdout from the command
727
726
728
- ` execFileSync ` will not return until the child process has fully closed. When a
727
+ ` execSync ` will not return until the child process has fully closed. When a
729
728
timeout has been encountered and ` killSignal ` is sent, the method won't return
730
729
until the process has completely exited. That is to say, if the process handles
731
730
the ` SIGTERM ` signal and doesn't exit, your process will wait until the child
@@ -735,10 +734,10 @@ If the process times out, or has a non-zero exit code, this method ***will***
735
734
throw. The ` Error ` object will contain the entire result from
736
735
[ ` child_process.spawnSync ` ] ( #child_process_child_process_spawnsync_command_args_options )
737
736
737
+ ### child_process.execFileSync(file[ , args] [ , options ] )
738
738
739
- ### child_process.execSync(command[ , options] )
740
-
741
- * ` command ` {String} The command to run
739
+ * ` file ` {String} The filename of the program to run
740
+ * ` args ` {Array} List of string arguments
742
741
* ` options ` {Object}
743
742
* ` cwd ` {String} Current working directory of the child process
744
743
* ` input ` {String|Buffer} The value which will be passed as stdin to the spawned process
@@ -756,7 +755,7 @@ throw. The `Error` object will contain the entire result from
756
755
* ` encoding ` {String} The encoding used for all stdio inputs and outputs. (Default: 'buffer')
757
756
* return: {Buffer|String} The stdout from the command
758
757
759
- ` execSync ` will not return until the child process has fully closed. When a
758
+ ` execFileSync ` will not return until the child process has fully closed. When a
760
759
timeout has been encountered and ` killSignal ` is sent, the method won't return
761
760
until the process has completely exited. That is to say, if the process handles
762
761
the ` SIGTERM ` signal and doesn't exit, your process will wait until the child
0 commit comments