Should we imitate GNU test's insanity?
Xin LI
delphij at delphij.net
Wed Feb 9 21:25:45 UTC 2011
-----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 at 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-----
-------------- next part --------------
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},
More information about the freebsd-standards
mailing list