Subject: strange w(1) output ?
To: None <current-users@netbsd.org>
From: Peter Postma <peter@pointless.nl>
List: current-users
Date: 07/03/2004 19:45:17
w(1) is a bit strange with long (ipv6) addresses:

# w
 7:28PM  up  7:35, 2 users, load averages: 0.15, 0.11, 0.09
USER    TTY FROM                               LOGIN@  IDLE WHAT
peter    p0 2001:7b8:363:0:203:47ff:feae:db86  7:26PM     0 w
peter    p1 2001:7b8:363::1                    7:26PM     1 -zsh

this looks ok, but:

# w -n
 7:28PM  up  7:35, 2 users, load averages: 0.14, 0.11, 0.09
USER    TTY FROM              LOGIN@  IDLE WHAT
peter    p0 2001:7b8:363::    7:26PM     0 w -n
peter    p1 2001:7b8:363::    7:26PM     1 -zsh

               ^^ note the incomplete addresses

Is this normal behaviour? If not, how should it work then?

(freebsd's w(1) only shows the first 16 chars).

-- 
Peter Postma