From f7dbdf972fb9df90a18d8b4b5d87d9281dfc3a61 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 14 Sep 2020 13:20:11 -0400 Subject: fix -t test --- test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.c b/test.c index 7736d2d..bf7d687 100644 --- a/test.c +++ b/test.c @@ -115,7 +115,7 @@ static int test_s(struct test_arg a) static int test_t(struct test_arg a) { - return isatty((int)a.n); + return isatty((int)a.n) ? 0 : 1; } static int test_u(struct test_arg a) -- cgit v1.2.1