lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit b7f18462476858d1fb76f3e204d7469734f1d264
parent fad0fdb975c588cf38eeb9edf64055614d6672b0
Author: Duncaen <mail@duncano.de>
Date:   Wed, 24 May 2017 03:19:37 +0200

bin/test: update to OPENBSD_6_1

Diffstat:
bin/test/test.1 | 9+++++++--
bin/test/test.c | 7++++---
2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/bin/test/test.1 b/bin/test/test.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: test.1,v 1.32 2015/11/06 21:56:46 jmc Exp $ +.\" $OpenBSD: test.1,v 1.33 2016/08/16 18:51:25 schwarze Exp $ .\" $NetBSD: test.1,v 1.6 1995/03/21 07:04:03 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -33,7 +33,7 @@ .\" .\" @(#)test.1 8.1 (Berkeley) 5/31/93 .\" -.Dd $Mdocdate: November 6 2015 $ +.Dd $Mdocdate: August 16 2016 $ .Dt TEST 1 .Os .Sh NAME @@ -355,3 +355,8 @@ as part of X/Open System Interfaces and obsolete. also exists as a built-in to .Xr ksh 1 , though with a different syntax. +.Sh HISTORY +A +.Nm +utility appeared in +.At v7 . diff --git a/bin/test/test.c b/bin/test/test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test.c,v 1.16 2016/01/13 13:13:04 gsoares Exp $ */ +/* $OpenBSD: test.c,v 1.17 2017/01/21 11:03:42 krw Exp $ */ /* $NetBSD: test.c,v 1.15 1995/03/21 07:04:06 cgd Exp $ */ /* @@ -150,7 +150,7 @@ static int getn(const char *s); static int newerf(const char *, const char *); static int olderf(const char *, const char *); static int equalf(const char *, const char *); -static void syntax(const char *op, char *msg); +static __dead void syntax(const char *op, char *msg); int main(int argc, char *argv[]) @@ -331,7 +331,8 @@ binop(void) case FILEQ: return equalf(opnd1, opnd2); } - /* NOTREACHED */ + + syntax(op->op_text, "not a binary operator"); } static enum token