Y
Hacker News
new
|
ask
|
show
|
jobs
by
mprovost
324 days ago
In other shells, the status of the pipeline is the exit status of the last process, so in this case that would be head which exits with 0.
1 comments
aidenn0
324 days ago
Not in e.g. bash with "pipefail" set. However the pipefail option in bash will choke on my previous example, hence treating a SIGPIPE the same as success in ysh.
link
mprovost
324 days ago
Yes well, the pipefail option configures bash to do the opposite of its usual behaviour.
link