From owner-freebsd-current Sat Jul 5 04:10:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA03031 for current-outgoing; Sat, 5 Jul 1997 04:10:46 -0700 (PDT) Received: from lsd.relcom.eu.net (lsd.relcom.eu.net [193.124.23.23]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA03025 for ; Sat, 5 Jul 1997 04:10:40 -0700 (PDT) Received: (from ache@localhost) by lsd.relcom.eu.net (8.8.6/8.8.5) id PAA27936; Sat, 5 Jul 1997 15:10:35 +0400 (MSD) Date: Sat, 5 Jul 1997 15:10:35 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= X-Sender: ache@lsd.relcom.eu.net To: Wolfram Schneider cc: current@FreeBSD.ORG Subject: Re: long usernames in top In-Reply-To: <199707051001.MAA00736@panke.panke.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 5 Jul 1997, Wolfram Schneider wrote: > Here is a workaround. Top should print only the first 10 > characters. If the username is longer than 10 characters, the > 10th character will be replaces with an asterisk ('*'). An other > alternative would be to use the uid instead the long username. It is not workaround but hack. You silently assume that all characters above 10 is not sufficient which is not true in general case. Why not replace by '*' _first_ 10 characters instead :-) Top must do the same thing as ps does, i.e. calculate max length of user name and align outbut with this value. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/