I'm not sure if it's a bug or whether it's the design intent.
- Version:
v10.15.2
- Platform:
Darwin bogon 18.7.0 Darwin Kernel Version 18.7.0 x86_64
- Subsystem:
bin/test.sh
#!/bin/bash
echo $1
echo $2

here is my debug info:
|
return child_process.spawnSync(opts); |

the final exec script
/bin/sh -c ./bin/test.sh arg0 arg1
here is my trying

the final exec script
/bin/sh -c "./bin/test.sh arg0 arg1"
I'm not sure if it's a bug or whether it's the design intent.
v10.15.2Darwin bogon 18.7.0 Darwin Kernel Version 18.7.0 x86_64bin/test.shhere is my debug info:
node/lib/child_process.js
Line 601 in 1a96d83
the final exec script
here is my trying

the final exec script
/bin/sh -c "./bin/test.sh arg0 arg1"