steve@dexter:~$ w 6:23pm up 3 days, 5:22, 4 users, load average: 0.26, 0.38, 0.34 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT steve tty1 - 6:23pm 9.00s 0.21s 0.07s -bash steve pts/2 :0 3:47pm 6:41 1:07 1:07 mutt steve pts/5 :0 6:20pm 0.00s 0.32s 0.07s w steve@dexter:~$ who steve tty1 Mar 30 18:23 steve :0 Mar 25 12:35 steve pts/2 Mar 30 15:47 steve pts/5 Mar 30 18:20 steve@dexter:~$
w is actually a component of procps, hence its inconsistency with sh-utils.
These are different utilities, implemented in different ways.
The bug is not the inconsistance of the display, but rather the inconsistancy of the information. As you see above, who lists a login that w does not. Am I misunderstanding something, or should these two utilities not at least list the same information, if in diffrent ways?
Hi Steve! Ah, I see. That's easy to explain. w skips non-login user processes, who does not.