Don't skip the superfluous "is" argument if it's not superfluous!

This allows us to use `wtf is` and get information for the acronym "is"
and produces the same output as `wtf is is` withough requiring the extra
typing by the user.
This commit is contained in:
pgoyette 2018-01-17 03:03:59 +00:00
parent 6a06635178
commit 0a18c53300
1 changed files with 4 additions and 2 deletions

View File

@ -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