darkguy2008 / parallelshell

Run multiple shell commands in parallel
501 stars 44 forks source link

with --wait, parallelshell always exits with 0? #38

Closed kentor closed 8 years ago

kentor commented 9 years ago

Even if the subprocesses have an exit code > 0. Is this intended?

keithamus commented 9 years ago

That sounds like a bug. Have you tried using the dev branch (see #30)? If it fixes it for you, let me know and we can look to merging #30.

kentor commented 9 years ago

Master:

❯ npm start; echo $?

> @ start /Users/kenneth/stuff/parallelshell-test
> parallelshell --wait 'rm asdf'

rm: asdf: No such file or directory
0

exits 0.

Dev:

❯ npm start; echo $?

> @ start /Users/kenneth/stuff/parallelshell-test
> parallelshell --wait 'rm asdf'

0

exits 0. does not show the failed rm message?

without wait, this would exit 1