I didn't know why, but I found a real use case without any work-arround.
Reading a little bit the sh -c's documentation, I found that you can use -a for make variables to export. But isn't exactly what I want, but still adds the possibility of export a variable with parallelshell.
TODO: Check if Linux/Windows is working fine.
and then I figure it out, that the condition of add 'exec' on the commands it's only for non window platforms, just added mac and works fine the assignment.
I fixed also:
Fix some === eq
Remove some not used vars
Use standardjs (as I see that the tests are in coffee, make sense don't have semicolons)
Hello @keithamus,
As I comment on the Issue https://github.com/keithamus/parallelshell/issues/45, parallelshell can't assign a variable on a command that execute.
I didn't know why, but I found a real use case without any work-arround.
Reading a little bit the
sh -c
's documentation, I found that you can use-a
for make variables to export. But isn't exactly what I want, but still adds the possibility of export a variable with parallelshell. TODO: Check if Linux/Windows is working fine.and then I figure it out, that the condition of add 'exec' on the commands it's only for non window platforms, just added mac and works fine the assignment.
I fixed also:
So... the only 'line of code` of this PR is: https://github.com/keithamus/parallelshell/compare/master...davesnx:Issue45?expand=1#diff-168726dbe96b3ce427e7fedce31bb0bcR103