]> Zhao Yanbai Git Server - minix.git/commitdiff
Patch mkdep to make sure tested values are not mistaken
authorLionel Sambuc <lionel@minix3.org>
Tue, 9 Oct 2012 16:50:05 +0000 (18:50 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 22 Oct 2012 09:37:42 +0000 (11:37 +0200)
as test flags.

tools/host-mkdep/host-mkdep.in

index 8512480d2d64ed6908e21899bca14ffeeb501c4f..18a4f1c38e5909090b47eff7e31d8f9d9d37b42e 100644 (file)
@@ -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}"