>Synopsis: ps(1) does not support -A, -o comm=foo
>Category: user
>Environment:
System : OpenBSD 5.3
Details : OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386
Machine : i386
>Description:
ps(1) manual claims that the implementation is compliant to POSIX 2008,
but:
* -A is not supported (see below)
* '-o comm=foo' gives an error (see below; interestingly '-o
ucomm=foo' and '-o comm' work as expected)
POSIX specifies both -A and the 'comm' field name; see
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html
>How-To-Repeat:
$ ps -A
ps: unknown option -- A
usage: ps [-aCceHhjkLlmrSTuvwx] [-M core] [-N system] [-O fmt] [-o fmt]
[-p pid]
[-t tty] [-U username] [-W swap]
$ ps -o comm=foo >/dev/null
ps: comm: illegal keyword specification
>Fix:
Add support for these options.