Exit codes and errors
hardpar 3 commandsMake the failure visible
A pipeline whose first stage fails reports success. Turn on the option that changes that, run one, and print the status.
Goal
0 / 3 commands
Turn on pipefail, then run a pipeline whose first stage fails (read a file that does not exist) into head -1, and print the status.
$
| Mode | Links | Size | Name |
|---|---|---|---|
| -rw-r--r-- | 1 | 69 | budget.txt |
| -rw-r--r-- | 1 | 89 | report.md |