aboutsummaryrefslogtreecommitdiff
path: root/bin/stbl
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-04-05 20:06:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-04-05 20:46:47 +1200
commitc8ab406749124d2e762ad5cf53963070113afd0f (patch)
tree54c9721a06957ebe7098a211eea803b0230c0f5d /bin/stbl
parentHandle POSIX correctness in ~/.bash_profile (diff)
downloaddotfiles-c8ab406749124d2e762ad5cf53963070113afd0f.tar.gz
dotfiles-c8ab406749124d2e762ad5cf53963070113afd0f.zip
Apply runtime shebanging to POSIX shell
Diffstat (limited to 'bin/stbl')
-rwxr-xr-xbin/stbl19
1 files changed, 0 insertions, 19 deletions
diff --git a/bin/stbl b/bin/stbl
deleted file mode 100755
index 34a06251..00000000
--- a/bin/stbl
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-# Strip a trailing blank line from the given files with ed(1)
-
-# Check arguments
-if [ "$#" -eq 0 ] ; then
- printf >&2 'stbl: Need a filename\n'
- exit 2
-fi
-
-# Iterate over arguments and apply the same ed(1) script to each of them
-for fn ; do
- ed -s -- "$fn" <<'EOF' || ex=1
-$g/^ *$/d
-w
-EOF
-done
-
-# If any of the ed(1) commands failed, we should exit with 1
-exit "${ex:-0}"