Pcornel
Browse topics
Options
Recent
Favorites
Evidence · observation

Exit Codes Linux operational evidence

Linux · Exit Codes

Expected observation

Healthy evidence: status is captured from the correct command/stage, interpreted using its documented contract and corroborated by target/workload evidence where needed. Suspicious evidence: the status is overwritten, last-stage pipeline success hides upstream failure, or a generic zero/nonzero rule misclassifies application-defined outcomes.

Intended proof boundary

Correlated Linux file/text/shell evidence can establish this proof path: process/builtin operation → application-defined exit status or signal → shell pipeline/list/control-flow semantics → $? / PIPESTATUS → caller decision → target/workload verification

Does not prove

It does not independently prove behavior outside the captured host, shell/session, cwd/namespace, input, process, filesystem, locale, time or workload scope. Exit-code evidence proves only the producer's reported status under the caller's shell semantics; it does not independently prove side effects or end-to-end success.

Next discriminating check

For Shell & Bash → Exit Codes, continue with the first unproven Topic check: Capture the relevant status immediately and consult the command/application contract for its meaning. If that boundary is healthy, advance to the adjacent check: For pipelines capture per-stage status and define whether pipefail is required. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

1ObservationExpected observation; record actual output separately.
→
2Inference boundaryOnly what the observation directly supports.
→
3Non-proof boundaryWhat still remains unproven.
→
4Next checkThe next discriminating observation.
Documentation structureReference completenessexpected observation documented · intended proof boundary documented · non-proof boundary documented · next check documented · source reference supplied
Source referencePcornel evidence-first Linux file/text/shell modelSource presence does not itself prove technical correctness.
Verification closure

Use this Evidence to decide the next boundary, not to skip the original test

Observation → proof/non-proof boundary → next discriminating check → minimum controlled change → repeat the original workload/test → adjacent/return-path regression check where relevant.

Capture / filter

Shell & Bash → Exit Codes + exact time/host/boot/namespace + affected object/identity + verification chain: process/builtin operation → application-defined exit status or signal → shell pipeline/list/control-flow semantics → $? / PIPESTATUS → caller decision → target/workload verification + discriminator: Capture the relevant status immediately and consult the command/application contract for its meaning. + requested/observed/effective state + original workload/result
Reference statusEvidence reference · unreviewed · Source reference
Reference completenessEvidence reference · 100/100
Freshnessunreviewed
ProvenanceSource reference
Collection costLow

Evidence reference. Completeness measures filled reference fields, not a captured result, source correctness or confidence in live operation. Review freshness is shown separately. Record actual output, target, scope and time before drawing an operational conclusion.

Confirmation

Confirm action

Continue?