From owner-freebsd-current@FreeBSD.ORG Thu Dec 18 21:20:27 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D7E08AA8 for ; Thu, 18 Dec 2014 21:20:27 +0000 (UTC) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D5DB2792 for ; Thu, 18 Dec 2014 21:20:27 +0000 (UTC) Received: from psyche.jupiter.sigsegv.be (94-225-212-248.access.telenet.be [94.225.212.248]) by venus.codepro.be (Postfix) with ESMTPS id A698F22A08; Thu, 18 Dec 2014 22:20:24 +0100 (CET) Received: from kp by psyche.jupiter.sigsegv.be with local (Exim 4.80) (envelope-from ) id 1Y1iUi-0006QE-6h; Thu, 18 Dec 2014 22:20:24 +0100 From: Kristof Provost To: freebsd-current@freebsd.org Subject: [PATCH] minstat: default width is terminal width, not 74 Date: Thu, 18 Dec 2014 22:20:01 +0100 Message-Id: <1418937601-24647-1-git-send-email-kristof@sigsegv.be> X-Mailer: git-send-email 2.1.3 Cc: Kristof Provost X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 21:20:27 -0000 The man page states that: '-w width Width of ASCII-art plot in characters, default is 74.' This is not entirely correct. The mini-help is more accurate: '-w : width of graph/test output (default 74 or terminal width)' In other words: the man page fails to explain that ministat will default to the terminal width, not 74. It will only fall back to 74 if 'COLUMNS' is not set and ioctl(TIOCGWINSZ) fails. --- usr.bin/ministat/ministat.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/ministat/ministat.1 b/usr.bin/ministat/ministat.1 index ea31c23..4550a09 100644 --- a/usr.bin/ministat/ministat.1 +++ b/usr.bin/ministat/ministat.1 @@ -68,7 +68,7 @@ See .Xr strtok 3 for details. .It Fl w Ar width -Width of ASCII-art plot in characters, default is 74. +Width of ASCII-art plot in characters, default is terminal width or 74. .El .Pp A sample output could look like this: -- 2.1.3