hfour/wsrun

wsrun --bin spawns incorrectly on non-win32 platforms when command includes parameters

Opened this issue · 0 comments

jpa00 commented

So, it looks like I need to use --bin "yarn --silent" to prevent the return values (error codes) from --if from getting reported as errors on the console. This works just fine on Windows, but fails at least on ubuntu and mac, since the spawn does not split the command's arguments for --bin. So spawn ends up looking trying to run "yarn --silent" as a command, when "--silent" whould be a parameter for "yarn". The contents of --if are split correctly.

Would cross-spawn be problematic as a dependency?