From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9509C1F4C1 for ; Wed, 16 Oct 2019 11:14:51 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/3] doc: check-man: use COLUMNS env for width Date: Wed, 16 Oct 2019 11:14:49 +0000 Message-Id: <20191016111451.32255-2-e@80x24.org> In-Reply-To: <20191016111451.32255-1-e@80x24.org> References: <20191016111451.32255-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: That's the environment documented in ncurses(3) and man(1) from the man-db.nongnu.org distribution of man. --- Documentation/include.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/include.mk b/Documentation/include.mk index 2878422c..07b9f2a3 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -92,7 +92,7 @@ doc_install :: install-man # n.b. not sure if our usage of man(1) is portable or not, so not # enabled by default "check" target: # check :: check-man -check_man = @echo CHECK80 $<;COLS=80 $(MAN) ./$^ | \ +check_man = @echo CHECK80 $<;COLUMNS=80 $(MAN) ./$^ | \ $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 %.1.cols : %.1; $(check_man)