I've seen the following question : Bash run two commands and get output from both which almost responds to my need.
However, the wait command is blocking, so that means that if command 2 fails before command 1 succeeds, the command will not return when command 2 fails but only when command 1 succeeds.
Is it possible to run multiple commands in parallel, and return 1 whenever one of them fails and return 0 if all of them succeed (And returning as soon as possible) ?
It would be even better if that is possible using standard commands (like xargs or parallel), but also ok if it is written using bash.