Javascript is not enabled. This site can still works but it'll be more interactive when javascript is enabled.
loading...
Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
xorcist
12 hours ago
|
on: A shell colon does nothing. Use it anyway
In this specific case, echo can't fail to there's no need for any of that:
[ -z "$1" ] && echo "fail" >&2 && exit 1
reply
layer8
11 hours ago
|
parent
Echo will fail here when stderr is closed. For example when the caller of the script pipes stderr to another command and that command exits.
reply