Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mprovost
7mo ago
0 comments
Share
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.
0 comments
default
newest
oldest
aidenn0
7mo 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.
mprovost
OP
7mo ago
Yes well, the pipefail option configures bash to do the opposite of its usual behaviour.
j
/
k
navigate · click thread line to collapse