Date: Wed, 09 Feb 2011 13:25:31 -0800 From: Xin LI <delphij@delphij.net> To: utisoft@gmail.com Cc: freebsd-standards@freebsd.org Subject: Re: Should we imitate GNU test's insanity? Message-ID: <4D53064B.7090901@delphij.net> In-Reply-To: <AANLkTi=mNb=u0UA1zHYTdiVxdJc=3-VPtWxvc7tu4R4H@mail.gmail.com> References: <AANLkTi=mNb=u0UA1zHYTdiVxdJc=3-VPtWxvc7tu4R4H@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------070900030504060001050108 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 02/09/11 12:46, Chris Rees wrote: > Hi all, > > I've found so many cases of autoconf failing when porting Linux apps > over, for example scilab and musicpd due to the happiness of GNU test > to accept a == b rather than a = b. > > Rather than making a bug report that'll be brushed off (as my bug > report for GNU find was), would it be unthinkable for me to make a > patch for our test to make == acceptable, to stop some wasted porters' > time? I don't think == is unacceptable extension to the POSIX standard based on my reading. If there is no objection I'll commit the attached patch on Friday. Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJNUwZLAAoJEATO+BI/yjfB1jIH+gNDuwAebonOjVJeZi/RRsIb lnorgRDijI+y+Szo0av54TtlwTSlXK76hZEmmaK7R5cTK4NIQljIXKejVB9ZWYRY Setp+JHXNYCkc7tR6HqBwNjKUL3wLIjzxgMVPrAC2lAbDvk0kgz8VaysLFRpuj5F 7SmEaHUUhpzSRtlt27Ju06Y62r/+bRyWAiqeJFLZfNewJu6PIr+ZjAWU7M1ICFCy oNX2e7dx9AG8qGSZ0iJBYbyT0ITEQjWVtPFq4naFLHWAW/TfBxAWp5IwwXuAtdmF o4eapEIP7lB7t2Kxrn79+dFlf1yS1JgrvwlZBe6Ss87CiOnX1U4hPzqDLKPhTkw= =Q6K9 -----END PGP SIGNATURE----- --------------070900030504060001050108 Content-Type: text/plain; name="test.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.diff" Index: bin/test/test.c =================================================================== --- bin/test/test.c (revision 218497) +++ bin/test/test.c (working copy) @@ -140,6 +140,7 @@ {"-L", FILSYM, UNOP}, {"-S", FILSOCK,UNOP}, {"=", STREQ, BINOP}, + {"==", STREQ, BINOP}, {"!=", STRNE, BINOP}, {"<", STRLT, BINOP}, {">", STRGT, BINOP}, --------------070900030504060001050108--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D53064B.7090901>