Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
joeyh
on Aug 5, 2011
|
parent
|
context
|
favorite
| on:
Designing command-line interfaces
Configure your shell to report nonzero exit statuses.
joey@gnu:~>true joey@gnu:~>false zsh: exit 1
In zsh this is done by "setopt print_exit_value". It's a pity shells don't do it by default.
njharman
on Aug 7, 2011
[–]
Good hint, but it's value is very niche. Waiting until exit for status is fail. Many commands take seconds if not minutes/hours to complete. I wanna see some indication that they are working and not hung/etc.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: