From owner-svn-src-all@freebsd.org Thu Oct 17 10:02:10 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F2FEF14CBE8; Thu, 17 Oct 2019 10:02:10 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46v4TG6DFrz42fd; Thu, 17 Oct 2019 10:02:10 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id C2C7C1C7C1; Thu, 17 Oct 2019 10:02:10 +0000 (UTC) Date: Thu, 17 Oct 2019 10:02:10 +0000 From: Alexey Dokuchaev To: Mike Karels Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r351379 - head/usr.bin/w Message-ID: <20191017100210.GA43419@FreeBSD.org> References: <201908220328.x7M3SVDU089700@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201908220328.x7M3SVDU089700@repo.freebsd.org> User-Agent: Mutt/1.11.4 (2019-03-13) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2019 10:02:11 -0000 On Thu, Aug 22, 2019 at 03:28:31AM +0000, Mike Karels wrote: > New Revision: 351379 > URL: https://svnweb.freebsd.org/changeset/base/351379 > > Log: > Change w(1) to compute FROM (host) field size dynamically > > It's nice to be able to display a full IPv6 host address if > needed, but it's also nice to display more than 3 characters of a command > line. Compute the needed size for the FROM column in an earlier pass, > and determine the maximum, then print what fits for the command. Thank you Mike, this had been bugging me for quite a while! Now I only need one-line W_DISPUSERSIZE=8 patch to get my perfect w(1). :-) ./danfe