Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 1997 22:47:23 -0800 (AKDT)
From:      Steve Howe <un_x@anchorage.net>
To:        freebsd-questions <questions@freebsd.org>
Subject:   test
Message-ID:  <Pine.BSF.3.95q.970506224215.19290A-100000@aak.anchorage.net>

next in thread | raw e-mail | index | archive | help

according to test(1), 

(expression) should evaluate to true if expression is true,
just as ! expression evaluates to false if expression is false.

but the () cause syntax problems for me, ie,

if test (1 = 1); then echo YES!; fi

> syntax error: expecting ")" ...
-------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970506224215.19290A-100000>