mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Document handling of background process failures with wait
@@ -39,7 +39,7 @@ By assigning it to a variable first, the exit code of the command will propagate
|
||||
|
||||
### 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:
|
||||
|
||||
|
Reference in New Issue
Block a user