HomeFreeBSD

ps(1): Make '-a' and '-A' always show all processes

Description

ps(1): Make '-a' and '-A' always show all processes

When combined with other options affecting the selection of processes,
except for '-X' and '-x', option '-a' would have no effect (and '-A'
would reduce to just '-x'). This was in contradiction with the rule
applying to all other selection options stating that one process is
listed as soon as any of these options has been specified and selects
it, which is both mandated by POSIX and arguably a natural expectation.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49617 (code)
Differential Revision: https://reviews.freebsd.org/D49618 (manual page)

Details

Provenance
olceAuthored on Mar 14 2025, 9:42 PM
Differential Revision
D49618: ps.1: '-A' and '-a': Note change in behavior
Parents
rG5dad61d9b949: ps(1): Make '-O' more versatile and predictable
Branches
Unknown
Tags
Unknown