From nobody Sun Aug 03 20:36:13 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bwBKn1Rctz63ntZ for ; Sun, 03 Aug 2025 20:36:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bwBKn0l12z3fZ7 for ; Sun, 03 Aug 2025 20:36:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754253373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iWliZQGdaUSl7a9cxcocA9PBDIxiB8j1TzMnAMR4E7o=; b=Awi3w4RODhoLeGgzOEHLoA9Ls+1gTa2u3FMdWROfIxIxq5D7QWEpagQrWB1Mn6kNbzt+8V YyBbwxzTsEefb1pbVKYVNBradrwZa2kP7xia1Z8C4JhBnruArPYrfb9d9TITWTGdnACdHz +MTjyAuy9IwhTodjMmAsgBbZVW3opKRdTo2lJ9+lvqCS+f48dc4oXRvaqkl3dByJbpcqaD J7XXlkkY6kRmcZdjg2+1pIEWQ+9gsLByPkMuf0vwRqINq7abk4bpNekvRLZD/UityTNuV3 gJejLJcNE1b2A3pbACSOydFEp+kOp8i3A4q1LhyS5hRrHr+bmjXcm37DRlWH5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754253373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iWliZQGdaUSl7a9cxcocA9PBDIxiB8j1TzMnAMR4E7o=; b=WFanqSEPfaGzm9ThSFDcjvr08+XbvAJKVhTtKE2PghYeHnTkcneoh3OC/WhFZPWCsWtgCu dN5731TnmAu5eSA0C2r5LonQNMSOJwAgOx3dECM9Uos24uXKa5eW7/hNtvpfmop3kHUPLK YJtVwyZ7r9C6JqXiHRhggAO13f9Crl2d32kSgDSOXB4Eopag06EdONlLLwJDs4ZZFJfxv0 8TziR4bTcxrbMNUHki5KxGyuV6IHIUpEjMnxk5hDmKCsE3lQRpQlZ9D0UXvFAOIOVxheGt AYUZF+h8pPL9n/sDGsPV4BBk+1BD+ejETZSF6ZujeMHzJI9AnKcVEWb94uoZiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754253373; a=rsa-sha256; cv=none; b=jj4azJrOGbw9eYSdX8MTNSCQnE4ynQA4lBSAznAMDsLSg/bsGCOuTlWpP0e7mIT0FssOkH VaQmtO6+8bQJH3Y4WzEZ8O4QkM9uWPdwc8uIUg4D97p2TRd2vpTtwiAPd74nUny5+qBdKm HNVh+6IMGiVpMrf32+VAXFNHCX4//6RowRrqtYyJzRcTXqNzIV5qsfAAwAztK8nDAyNKxn uFmMkGKAj6M48bU3zwjzEgJxx7WPFK7s8gqc4Np3YPwsOFV23uuxe88RwddZLVqrKAmt0T eHDZMCN5blPnEhrHTlJiqWypR7j5mfp4qAqENLoBBpD7uYoq7m/908ZR3P+tuw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bwBKn0H5yz34v for ; Sun, 03 Aug 2025 20:36:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 573KaCXY006766 for ; Sun, 3 Aug 2025 20:36:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 573KaCKJ006765 for bugs@FreeBSD.org; Sun, 3 Aug 2025 20:36:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 288647] ps filtering options broke Date: Sun, 03 Aug 2025 20:36:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: leif@ofWilsonCreek.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D288647 Bug ID: 288647 Summary: ps filtering options broke Product: Base System Version: 14.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: leif@ofWilsonCreek.com Previous behavior of ps was: * Specifying -a and -x would remove the default filters revealing more processes. * Specifying -U would imply -a, then impose a filter hiding processes unrel= ated to the UID(s). * Specifying -p would impose a filter, hiding processes unrelated to specif= ied PID(s). * Specifying -d would change the display to tree format, AND loosen -p to include descendent processes of the specified PIDs. Put by example: `ps -ax -U mongodb` would remove the default filters that hide PIDs for (a)other users and (x)unattached to terminals. Then it would impose a filte= r to just the UID for mongodb. Now, -x is ignored with -U, and -a overrides -U showing everything. Admittedly, being able to include -a with -U wasn't rea= lly important before because -U superseded -a, but it was nice that a shell ali= as with -a could be overridden with -U. `ps -d -p 123` would show PID 123 and its descendants in tree format -- VERY useful for cron as `ps -d -p $(cat /var/run/cron.pid)`. Now adding -d to -p does nothing. I'm not sure if these changes were intentional, but I fail to see any use-c= ase for them, and there are use-cases for the previous behavior. I believe changes to -d with -p happened in 14.0, and changes to -U happene= d in 14.3. I'd also lodge a friendly complaint that some of these breaking changes cam= e in a minor release. My understanding is, breaking changes wait for the next ma= jor release unless they're security-related. The changes in 14.3 caused us some consternation because we normally test our upgrades more thoroughly on major releases, and generally save a lot of time by mostly trusting that nothing breaks on minor releases. I hope we can continue to trust that minor releas= es don't change usages in incompatible ways. --=20 You are receiving this mail because: You are the assignee for the bug.=