Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep that's a valid scenario, if you need more granularity than just fail or success then you will have to use a different method, e.g.

Status=0

Somecommand || status=$?

Then do logic based on status



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: