Hacker News new | ask | show | jobs
by hhvn 1941 days ago
This works the same as your example in bash.

foobar || { echo fail; }