Revert previous (==) - not worth the trouble.

This commit is contained in:
hubertf 2006-09-24 13:24:08 +00:00
parent 9fa123aedb
commit 7eef11b485
2 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: test.1,v 1.21 2006/09/23 11:22:10 wiz Exp $
.\" $NetBSD: test.1,v 1.22 2006/09/24 13:24:08 hubertf Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -32,7 +32,7 @@
.\"
.\" @(#)test.1 8.1 (Berkeley) 5/31/93
.\"
.Dd September 22, 2006
.Dd May 31, 1993
.Dt TEST 1
.Os
.Sh NAME
@ -193,9 +193,6 @@ True if the strings
and
.Ar \&s\&2
are identical.
.It Ar \&s\&1 Cm \&== Ar \&s\&2
A synonym for
.Cm \&= .
.It Ar \&s\&1 Cm \&!= Ar \&s\&2
True if the strings
.Ar \&s\&1

View File

@ -1,4 +1,4 @@
/* $NetBSD: test.c,v 1.29 2006/09/22 22:15:24 hubertf Exp $ */
/* $NetBSD: test.c,v 1.30 2006/09/24 13:24:08 hubertf Exp $ */
/*
* test(1); version 7-like -- author Erik Baalbergen
@ -12,7 +12,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: test.c,v 1.29 2006/09/22 22:15:24 hubertf Exp $");
__RCSID("$NetBSD: test.c,v 1.30 2006/09/24 13:24:08 hubertf Exp $");
#endif
#include <sys/stat.h>
@ -39,8 +39,8 @@ __RCSID("$NetBSD: test.c,v 1.29 2006/09/22 22:15:24 hubertf Exp $");
unary-operator ::= "-r"|"-w"|"-x"|"-f"|"-d"|"-c"|"-b"|"-p"|
"-u"|"-g"|"-k"|"-s"|"-t"|"-z"|"-n"|"-o"|"-O"|"-G"|"-L"|"-S";
binary-operator ::= "="|"=="|"!="|"-eq"|"-ne"|"-ge"|"-gt"|"-le"|
"-lt"|"-nt"|"-ot"|"-ef";
binary-operator ::= "="|"!="|"-eq"|"-ne"|"-ge"|"-gt"|"-le"|"-lt"|
"-nt"|"-ot"|"-ef";
operand ::= <any legal UNIX file name>
*/
@ -121,7 +121,6 @@ static struct t_op {
{"-L", FILSYM, UNOP},
{"-S", FILSOCK,UNOP},
{"=", STREQ, BINOP},
{"==", STREQ, BINOP}, /* for bash compatibility */
{"!=", STRNE, BINOP},
{"<", STRLT, BINOP},
{">", STRGT, BINOP},