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,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 878B71F4C0 for ; Wed, 16 Oct 2019 08:18:23 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] doc: check-man: ignore backspace char Date: Wed, 16 Oct 2019 08:18:23 +0000 Message-Id: <20191016081823.23328-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: man(1) on FreeBSD unconditionally emits backspace characters for the bold effect despite its output being piped to awk(1). Also tested with the man-db.nongnu.org version provided with Debian (and presumably most other Linux systems). --- Documentation/include.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/include.mk b/Documentation/include.mk index 4af8d455..2878422c 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -93,7 +93,7 @@ doc_install :: install-man # enabled by default "check" target: # check :: check-man check_man = @echo CHECK80 $<;COLS=80 $(MAN) ./$^ | \ - $(AWK) 'length>80{print;err=1}END{exit(err)}' >&2 + $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 %.1.cols : %.1; $(check_man) %.5.cols : %.5; $(check_man)