3 ms·
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.
by ykonstant 4y ago
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.