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"