aboutsummaryrefslogtreecommitdiff
path: root/bin
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
parentFix printf argument mismatch bugs (diff)
downloaddotfiles-9267bccb6ae2f03f1eb8df7b3dd13d13ea57d14a.tar.gz
dotfiles-9267bccb6ae2f03f1eb8df7b3dd13d13ea57d14a.zip
Add vex(1df) and vest(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vest2
-rwxr-xr-xbin/vex10
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/vest b/bin/vest
new file mode 100755
index 00000000..db73e86d
--- /dev/null
+++ b/bin/vest
@@ -0,0 +1,2 @@
+#!/bin/sh
+vex test "$@"
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"