Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ykonstant
on Feb 9, 2023
|
parent
|
context
|
favorite
| on:
Shells are two things
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: