Hacker News new | ask | show | jobs
by teddyh 3160 days ago
Alternatively and shorter:

    echo foo | grep bar || :