Am I missing something? foo | not ...looks better than this to me: #!/bin/sh if [[ `foo` ]]; then exit 1 else exit 0 fi
-
-
Replying to @zoeblade
yes, you're looking for "!" (e.g. ! false && echo foo, but it also works for return: ! return 1)
2 replies 0 retweets 0 likes -
Replying to @allgebrah @zoeblade
a notable exception would be exit, but there you can do "exit $?"
1 reply 0 retweets 0 likes
Replying to @allgebrah @zoeblade
hmm not all of this syntax seems to be portable - but should solve most of your problems
11:51 AM - 13 Oct 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.