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