From: Lionel Sambuc Date: Tue, 9 Oct 2012 16:50:05 +0000 (+0200) Subject: Patch mkdep to make sure tested values are not mistaken X-Git-Tag: v3.2.1~265 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/invmod.png?a=commitdiff_plain;h=265d9b456d92908e8ff1596aa0a550198c6bfc5b;p=minix.git Patch mkdep to make sure tested values are not mistaken as test flags. --- diff --git a/tools/host-mkdep/host-mkdep.in b/tools/host-mkdep/host-mkdep.in index 8512480d2..18a4f1c38 100644 --- a/tools/host-mkdep/host-mkdep.in +++ b/tools/host-mkdep/host-mkdep.in @@ -72,7 +72,7 @@ set_objlist() # (don't trust the shell builtin getopts to be in a known state on error) while [ $# -gt 0 ]; do option="${1#-}" - [ "$option" = "$1" -o -z "$option" ] && break + [ "x$option" = "x$1" -o -z "$option" ] && break while optarg="${option#?}" option="${option%$optarg}"