Document handling of background process failures with wait

Jordan
2025-04-28 10:45:27 +10:00
parent bc0c0a5be0
commit 8aed6d66a7

@@ -39,7 +39,7 @@ By assigning it to a variable first, the exit code of the command will propagate
### Exceptions: ### Exceptions:
If you don't care about the command's exit status, or already handle it through a side channel like `<(cmd; echo $? > status)`, then you can either [[ignore]] the suggestion with a directive, or use `|| true` (or `|| :`) to suppress it. If you don't care about the command's exit status, already handle it through a side channel like `<(cmd; echo $? > status)`, or (in the case of background processes and process substitution) wait on the result like `<(cmd) ; wait $!`, then you can either [[ignore]] the suggestion with a directive, or use `|| true` (or `|| :`) to suppress it.
### Related resources: ### Related resources: