svn commit: r351379 - head/usr.bin/w

Alexey Dokuchaev danfe at freebsd.org
Thu Oct 17 10:02:11 UTC 2019


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


More information about the svn-src-head mailing list