Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on When Bash scripts bite.
echo ($(ldap-query-for-valid-users)) > /tmp/all-users.sexp
x=$(ldap-query-for-valid-users); test ${#x} -gt 0||exec echo no valid users >&2; echo \("$x"\) > /tmp/all-users.sexp;
Alternatively,
x=$(ldap-query-for-valid-users); test ${#x} -gt 0||exit 100 echo \("$x"\) > /tmp/all-users.sexp;
There are no comments on this comment yet.
Alternatively,
if they prefer a nonzero exit code to a message to stderr.