aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/each2
-rwxr-xr-xtools/filter2
-rwxr-xr-xtools/map2
-rwxr-xr-xtools/reduce2
-rwxr-xr-xtools/splitat2
-rwxr-xr-xtools/words2
6 files changed, 12 insertions, 0 deletions
diff --git a/tools/each b/tools/each
index da5ce84..e27ab49 100755
--- a/tools/each
+++ b/tools/each
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
if [ -z "$1" ]; then
echo "Usage: $0 <command>"
echo ""
diff --git a/tools/filter b/tools/filter
index 94258d0..1c927be 100755
--- a/tools/filter
+++ b/tools/filter
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
if [ -z "$1" ]; then
echo "Usage: $0 <command>"
echo ""
diff --git a/tools/map b/tools/map
index 8c4e5ef..2862a62 100755
--- a/tools/map
+++ b/tools/map
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
if [ -z "$1" ]; then
echo "Usage: $0 <expr>"
echo ""
diff --git a/tools/reduce b/tools/reduce
index effb98d..c88b0ba 100755
--- a/tools/reduce
+++ b/tools/reduce
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <init> <expr>"
echo ""
diff --git a/tools/splitat b/tools/splitat
index d41521e..4ca3ebd 100755
--- a/tools/splitat
+++ b/tools/splitat
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <separator>"
echo ""
diff --git a/tools/words b/tools/words
index ac76d0d..045c454 100755
--- a/tools/words
+++ b/tools/words
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
if [ "$#" -ne 0 ]; then
echo "Usage: $0"
echo ""