aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 18:39:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 18:39:43 +1200
commitf74c2fc0c45bc7d5f615628230c0660795033fde (patch)
tree1f762f36b3895ce6f788eac648c58d30b0567b65
parentTemplate traps in scripts depending on mktd(1) (diff)
downloaddotfiles-f74c2fc0c45bc7d5f615628230c0660795033fde.tar.gz
dotfiles-f74c2fc0c45bc7d5f615628230c0660795033fde.zip
Add self var to rndl(1)
-rw-r--r--bin/rndl.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/rndl.m4 b/bin/rndl.m4
index 85b21545..536f5c21 100644
--- a/bin/rndl.m4
+++ b/bin/rndl.m4
@@ -1,5 +1,6 @@
#!/bin/sh
# Print a random line from input
+self=rndl
# If there are no arguments, we're checking stdin; this is more complicated
# than checking file arguments because we have to count the lines in order to