aboutsummaryrefslogtreecommitdiff
path: root/bin/vex
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-22 10:50:06 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-22 10:50:06 +1300
commit9267bccb6ae2f03f1eb8df7b3dd13d13ea57d14a (patch)
treede202e4865ae64c8fa2f958457738f0a5599684c /bin/vex
parentFix printf argument mismatch bugs (diff)
downloaddotfiles-9267bccb6ae2f03f1eb8df7b3dd13d13ea57d14a.tar.gz
dotfiles-9267bccb6ae2f03f1eb8df7b3dd13d13ea57d14a.zip
Add vex(1df) and vest(1df)
Diffstat (limited to 'bin/vex')
-rwxr-xr-xbin/vex10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/vex b/bin/vex
new file mode 100755
index 00000000..66c9590f
--- /dev/null
+++ b/bin/vex
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Run a command and print a string to stdout showing pass/fail
+"$@"
+ex=$?
+case $ex in
+ 0) op='true' ;;
+ *) op='false' ;;
+esac
+printf '%s\n' "$op"
+exit "$ex"