[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/44733: [PATCH] Have test/[ accept "==" as a synonym for "="
The following reply was made to PR bin/44733; it has been noted by GNATS.
From: Robert Elz <kre%munnari.OZ.AU@localhost>
Subject: Re: bin/44733: [PATCH] Have test/[ accept "==" as a synonym for "="
Date: Thu, 17 Mar 2011 17:36:08 +0700
Date: Thu, 17 Mar 2011 09:40:04 +0000 (UTC)
From: David Holland <dholland-bugs%NetBSD.org@localhost>
| Doesn't bash's == have different semantics?
No, in [ (or test) the semantics of = and == in bash are the same.
That said, == is just plain stupid, was never needed, and should
definitely NOT be added to either /bin/test or /bin/sh in NetBSD.
Obviously bash is not going to drop == now - I tried to get the doc
at least fixed to try and persuade its users to use = rather than ==.
I was partially successful, the bash doc at least now says that == is
not portable (but doesn't quite go as far as telling people not to use it).
Main Index |
Thread Index |