kimmobrunfeldt / spawn-default-shell

Spawn shell command with platform default shell
https://www.npmjs.com/package/spawn-default-shell
MIT License
12 stars 4 forks source link

cmd.exe returns incorrect exit code #4

Open kimmobrunfeldt opened 8 years ago

kimmobrunfeldt commented 8 years ago

Test case "&& operator should work" is failing because cmd.exe doesn't return the exit code as expected.

This is what happens with cmd.exe /c:

screenshot 2016-09-30 21 17 35

It works in a cmd.exe session:

screenshot 2016-09-30 21 11 00

I don't know yet how to fix this issue. If anyone has ideas, please help.