summaryrefslogtreecommitdiff
path: root/bin/test
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-02-27 12:28:06 +0000
committerXin LI <delphij@FreeBSD.org>2011-02-27 12:28:06 +0000
commiteaea8924cee06b90451536e4b5ead2749e2eac7d (patch)
tree3cdd43ec1d802c80450559083e70ad13d186e9d6 /bin/test
parentb3f3e1cb6a1c8499baccb273b12718859fcf9009 (diff)
downloadsrc-test-eaea8924cee06b90451536e4b5ead2749e2eac7d.tar.gz
src-test-eaea8924cee06b90451536e4b5ead2749e2eac7d.zip
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. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=219084
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index 0d0ad65ffcd35..1259e681c5c50 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -144,6 +144,7 @@ struct t_op {
{"-L", FILSYM, UNOP},
{"-S", FILSOCK,UNOP},
{"=", STREQ, BINOP},
+ {"==", STREQ, BINOP},
{"!=", STRNE, BINOP},
{"<", STRLT, BINOP},
{">", STRGT, BINOP},