summaryrefslogtreecommitdiffstats
path: root/wtf
diff options
context:
space:
mode:
Diffstat (limited to 'wtf')
-rw-r--r--wtf/wtf6
1 files changed, 4 insertions, 2 deletions
diff --git a/wtf/wtf b/wtf/wtf
index 53d5107c..ace03327 100644
--- a/wtf/wtf
+++ b/wtf/wtf
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: wtf,v 1.21 2015/04/21 23:56:30 christos Exp $
+# $NetBSD: wtf,v 1.22 2018/01/17 03:03:59 pgoyette Exp $
#
# Public domain
#
@@ -30,7 +30,9 @@ done
shift "$(expr "$OPTIND" - 1)"
if [ "$1" = "is" ]; then
- shift
+ if [ $# -gt 1 ] ; then
+ shift
+ fi
fi
if [ -z "$1" ]; then