Linux CLI Shells: Understand Exit Status and Pipeline Results
A shell interprets commands and uses their results to decide what happens next. The terminal’s printed text and a command’s exit status are different evidence. This guide uses a checked harmless exercise where a local function deliberately fails, followed by a pipeline whose final stage succeeds.