Bug 12636 - ps does not support many POSIX required options
Summary: ps does not support many POSIX required options
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.33.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-11 12:10 UTC by wolf+busybox
Modified: 2020-03-11 12:10 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wolf+busybox 2020-03-11 12:10:42 UTC
ps does not support the -p option:	

+   $ ./busybox ps -p 1
ps: invalid option -- 'p'
BusyBox v1.32.0.git (2020-03-11 13:06:13 CET) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER] [-T]

Show list of processes

        -o COL1,COL2=HEADER     Select columns for display
        -T                      Show threads

It works with coreutils:

+   $ ps -p 1
    PID TTY          TIME CMD
      1 ?        00:07:41 systemd

More more importantly, it is required by posix. Here is the POSIX spec:

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html

and as you can see, busybox's ps is missing *a lot* of required options.