[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071020130635.GA6855@uranus.ravnborg.org>
Date: Sat, 20 Oct 2007 15:06:35 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: David Brownell <david-b@...bell.net>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [patch 2.6.23-git] toplevel Makefile/depmod bugfix
>
> > Is it truly protable with "=" or do we need to be more clever?
>
> I don't know how you managed to get it to work wtih "==".
> String equality should be "=" in all /bin/sh versions.
> It's been that way since it was written in pseudo-Algol.
[sam@...tun kbuild.git]$ if [ "x86_64" == "x86_64" ]; then echo foo; else echo bar; fi
foo
[sam@...tun kbuild.git]$ if [ "x86_64" == "x86_64x" ]; then echo foo; else echo bar; fi
bar
So it works as I expected here.
I will push your fix later today (which I have tested and it works here too).
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists