Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 May 2025 12:28:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 286599] ps(1) with -J <jail> broken sometime between b095a41a3a2a & 4fa275a5f357
Message-ID:  <bug-286599-227-tek4ENj9P7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-286599-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286599

Olivier Certner <olce@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
           Assignee|bugs@FreeBSD.org            |olce@FreeBSD.org
                 CC|                            |olce@FreeBSD.org
             Status|New                         |Closed

--- Comment #1 from Olivier Certner <olce@FreeBSD.org> ---
Hey Dave,

There is indeed an on-purpose change in behavior, both to become standard
compliant and also for consistency.  See commit message of
https://cgit.freebsd.org/src/commit/?id=93a94ce731a89b and also the updated
manual page.  In a nutshell, once a process is selected by any option, it will
be listed regardless of the other options (except for -X/-x, which work as a
(non-)filter; in more formal words, the processes selected by each option form
a set, and all these sets are unioned/ORed to obtain the final process list).

If you want to list processes only from a specific jail, then you simply don't
need '-a'.  Just remove it from your command-line and you should get the
expected result.  '-J' is not a filter (and AFAICT nothing hints it was
intended to be one, both in the code and the documentation).

Thanks and regards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-286599-227-tek4ENj9P7>