Skip to main content

Module aggregate

Module aggregate 

Source
Expand description

Exit-code aggregation across N child processes.

Two strategies per FR-007 / FR-008:

  • Default mode (default_max): max(child_codes) — intuitive “worst child wins” semantic.
  • Strict mode (strict_or): bitwise OR over WEXITSTATUS — byte-equal moreutils close_pipes().

Signal-killed children contribute the code 1 (matches moreutils WIFEXITED fallthrough — non-WIFEXITED wait result → ret |= 1).

Functions§

default_max
Aggregate child exit codes using max() (Default mode, FR-007).
strict_or
Aggregate child exit codes using bitwise OR (Strict mode, FR-008).