[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ada6412bar5.fsf@cisco.com>
Date: Fri, 19 Oct 2007 22:44:46 -0700
From: Roland Dreier <rdreier@...co.com>
To: Sam Ravnborg <sam@...nborg.org>
Cc: David Brownell <david-b@...bell.net>, linux-kernel@...r.kernel.org
Subject: Re: [patch 2.6.23-git] toplevel Makefile/depmod bugfix
> Accoding to man bash "==" is used to test for equality and "=" is used for assignmnet.
> I assume the above is a dash syntax error (dash is default on ubuntu IIRC).
My bash man page says the following under "CONDITIONAL EXPRESSIONS":
string1 == string2
True if the strings are equal. = may be used in place
of == for strict POSIX compliance.
This is bash 3.1 as packaged by Debian.
So I think "=" is the correct thing to use for compatibility with dash
or other non-bash shells, since as far as I know, there are no
situations where a comparison with "=" will fail but "==" will succed.
(ie "=" is strictly more compatible).
- R.
-
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