diff options
author | Weijia Wang <381152119@qq.com> | 2018-03-25 22:27:38 +0800 |
---|---|---|
committer | Weijia Wang <381152119@qq.com> | 2018-04-01 22:33:13 +0800 |
commit | 254058109f469f64b8ca23bb65a206abab380604 (patch) | |
tree | 4069f77207f62816c248ed1ac9910467ff1b15d6 /doc/api/child_process.md | |
parent | f89f79893d6e15938f9237efe4d2473ab4a65e9f (diff) | |
download | android-node-v8-254058109f469f64b8ca23bb65a206abab380604.tar.gz android-node-v8-254058109f469f64b8ca23bb65a206abab380604.tar.bz2 android-node-v8-254058109f469f64b8ca23bb65a206abab380604.zip |
tools: add 'spaced-comment' into eslint rules
PR-URL: https://github.com/nodejs/node/pull/19596
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'doc/api/child_process.md')
-rw-r--r-- | doc/api/child_process.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 6def24c8a5..7a01038d58 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -166,11 +166,11 @@ directly by the shell and special characters (vary based on need to be dealt with accordingly: ```js exec('"/path/to/test file/test.sh" arg1 arg2'); -//Double quotes are used so that the space in the path is not interpreted as -//multiple arguments +// Double quotes are used so that the space in the path is not interpreted as +// multiple arguments exec('echo "The \\$HOME variable is $HOME"'); -//The $HOME variable is escaped in the first instance, but not in the second +// The $HOME variable is escaped in the first instance, but not in the second ``` **Never pass unsanitized user input to this function. Any input containing shell |