summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1996-12-25 00:08:10 +0000
committersteve <steve@FreeBSD.org>1996-12-25 00:08:10 +0000
commit9079a13346057de25ffcb866d9914814f17dff5b (patch)
tree36474e143a3220d751f271ad03254e640c10ea54 /bin/test
parent3d5f13bf9363e3e53a0cb471b9c8efcb3651b0f6 (diff)
downloadFreeBSD-src-9079a13346057de25ffcb866d9914814f17dff5b.zip
FreeBSD-src-9079a13346057de25ffcb866d9914814f17dff5b.tar.gz
Fix handling of -o and -a operators in the 3 argument case.
Submitted by: Tom Rush <tarush@mindspring.com>
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index aef3d7e..3badcff 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: test.c,v 1.13 1996/03/11 11:01:03 joerg Exp $
+ * $Id: test.c,v 1.14 1996/12/14 06:16:51 steve Exp $
*/
#ifndef lint
@@ -157,7 +157,7 @@ main(argc, argv)
ret_val = posix_unary_op(&argv[1]);
if (ret_val >= 0)
return (!ret_val);
- } else {
+ } else if (lookup_op(argv[2], andor_op) < 0) {
ret_val = posix_binary_op(&argv[1]);
if (ret_val >= 0)
return (ret_val);
OpenPOWER on IntegriCloud