Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
switch007
on Jan 12, 2017
|
parent
|
context
|
favorite
| on:
Using GPG to Encrypt Your Data
You can over-rely on "set -e" however:
#!/usr/bin/env bash set -e fail() { false ; echo hello; } if ! fail; then :; fi
That outputs "hello" and exits with 0.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: