Subject: bin/34271: ps doesn't sort correctly
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <zafer@aydogan.de>
List: netbsd-bugs
Date: 08/24/2006 12:15:09
>Number: 34271
>Category: bin
>Synopsis: ps doesn't sort correctly
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 24 12:15:09 +0000 2006
>Originator: Zafer Aydogan
>Release: 4.99.1
>Organization:
>Environment:
4.99.1
>Description:
ps has the options m and r to sort the output. m for sorting the output by memory and r by %cpu.
But if m is set then r is discarded.
ps mr
displays values sorted by memory instead of sorted by %cpu.
m and r are mutually exclusive.
>How-To-Repeat:
ps mr shows the same like ps rm
>Fix:
No idea, maybe m and r flags should not go in parsesort() and be defined seperately.