Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
Pipes and redirection
In Bash, `producer | consumer` runs with `pipefail` disabled. The producer exits 7 and th…
from Pipes and redirection
GNU Bash 5.2.21
intermediate
3 min
In Bash, `producer | consumer` runs with `pipefail` disabled. The producer exits 7 and the consumer exits 0. What is the pipeline status?
0, because the last stage succeeded
7, because the first failure always wins
1, because every pipeline normalizes failures
14, because the two statuses are added
Check
Ask AI about this kata
Report an error
previous kata
When does a blocking pipe reader observe end-of-file?
Quiz
next kata
What does this Bash script print?
Predict the output
A new version is available
Reload