Skip to content

Exit codes and errors

hardpar 3 commands

Make 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.

$

The files in the sandbox, with their modes, link counts and sizes
ModeLinksSizeName
-rw-r--r--169budget.txt
-rw-r--r--189report.md