svn commit: r220250 - in stable/8: bin/test
tools/regression/bin/test
Xin LI
delphij at FreeBSD.org
Fri Apr 1 18:23:45 UTC 2011
Author: delphij
Date: Fri Apr 1 18:23:44 2011
New Revision: 220250
URL: http://svn.freebsd.org/changeset/base/220250
Log:
MFC r219084:
Accept == as an alias of = which is a popular GNU extension.
This is intentionally undocumented for now since it's not part
of any standard.
Modified:
stable/8/bin/test/test.c
stable/8/tools/regression/bin/test/regress.sh
Directory Properties:
stable/8/bin/test/ (props changed)
stable/8/tools/regression/bin/test/ (props changed)
Modified: stable/8/bin/test/test.c
==============================================================================
--- stable/8/bin/test/test.c Fri Apr 1 16:45:26 2011 (r220249)
+++ stable/8/bin/test/test.c Fri Apr 1 18:23:44 2011 (r220250)
@@ -144,6 +144,7 @@ struct t_op {
{"-L", FILSYM, UNOP},
{"-S", FILSOCK,UNOP},
{"=", STREQ, BINOP},
+ {"==", STREQ, BINOP},
{"!=", STRNE, BINOP},
{"<", STRLT, BINOP},
{">", STRGT, BINOP},
Modified: stable/8/tools/regression/bin/test/regress.sh
==============================================================================
--- stable/8/tools/regression/bin/test/regress.sh Fri Apr 1 16:45:26 2011 (r220249)
+++ stable/8/tools/regression/bin/test/regress.sh Fri Apr 1 18:23:44 2011 (r220250)
@@ -52,12 +52,15 @@ t ()
}
count=0
-echo "1..94"
+echo "1..97"
t 0 'b = b'
+t 0 'b == b'
t 1 'b != b'
t 0 '\( b = b \)'
+t 0 '\( b == b \)'
t 1 '! \( b = b \)'
+t 1 '! \( b == b \)'
t 1 '! -f /etc/passwd'
t 0 '-h = -h'
More information about the svn-src-stable
mailing list