You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intended. Since jobs can return different values, it is not clear what should be returned from prll itself. You're supposed to look at prll's output where each job's return value is printed. Currently, the return value of prll itself may tell you whether prll was interrupted, but I have not documented this because the exact behaviour depends on the shell used. Compare zsh, which returns 130 on SIGINT, and bash which returns 0.
While there may be value in returning 1 when any job returns a non-zero value, you still need to parse the output to figure out what really happened. So I think implementing this is not worth the hassle. Consider that once a job is backgrounded, it is detached from the shell and can only communicate using the C helpers; maybe implementing return value passing isn't really difficult, but it isn't trivial either.
I'm getting wrong exit code when running in bash from zsh. It's always 0, no matter if I exit or return something else in the function passed to prll.
The text was updated successfully, but these errors were encountered: