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

If I am reading the POSIX spec correctly,

    test 0 -lt "$1" 2>/dev/null || exit $?;
should be enough to get what you want in a compatible shell.


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

Search: