[Bug 4826] New: If 'args' is specified as a column name to 'ps -o', any column names given after args are ignored

bugzilla at busybox.net bugzilla at busybox.net
Thu Mar 1 01:56:49 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4826

           Summary: If 'args' is specified as a column name to 'ps -o',
                    any column names given after args are ignored
           Product: Busybox
           Version: 1.19.x
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: dan at coedit.co.uk
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


According to the help text when typing 'ps -o meh', supported column names are: 

user,group,comm,args,pid,ppid,pgid,tty,vsz,stat,rss

These can be specified in any order or combination and work correctly, EXCEPT
when 'args' is specified as a column name. When this is done, no column names
given after it will be shown.

So, typing 'ps -o user,group,comm,pid,ppid,pgid,tty,vsz,stat,rss,args' will
show all columns, as 'args' is last in the list. However, re-ordering the same
parameters so 'args' comes earlier will break. For example, 'ps -o
user,group,args,comm,pid,ppid,pgid,tty,vsz,stat,rss' will show only the
user,group, and args columns.

The placement doesn't matter... whatever comes after 'args' fails to get shown. 

Incidentally, the same holds true even when specifying the -o parameter
multiple times. This shows 3 columns, user, group, and args:

ps -o user -o group -o args

Whereas this shows only the args column:

ps -o args -o user -o group

I'm running BusyBox v1.19.3 (2012-02-21 15:37:53 WET) multi-call binary on my
D-Link DNS-323 NAS box.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list