From nobody Fri Aug 11 05:37:43 2023 X-Original-To: freebsd-current@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 4RMXcm0lr9z4mH5k for ; Fri, 11 Aug 2023 05:37:44 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RMXcm0CYGz4c5p; Fri, 11 Aug 2023 05:37:44 +0000 (UTC) (envelope-from pstef@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691732264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0NhaRUfjZ5WVX9dS5OWPi10XwuTwaGIvFZKWYOA/Z8c=; b=c0sd2OHtePKjA3nEz2I0SBbozojpK7apLCJeG0AVgzxb3cJH9RF7jzD8nCJTSfetxIxkz7 MkOdpJyu8oHPBRfQ6LzgnIBoCWw48lFYVNvJcAOboS8bHvST120O5AfuO8ihar/INWTXTp SFPHzmvxtCio1UV3B7XwM7cA4njr2y16aoLhkpH25JUAJ1763U4GayTFpPsPYn2w7mYGVF WjdSKKDzCBAS8s1tatmVHDnujBKaP6d8unq8SVmH/DPcwRkHv1oLmu8ZhjUpylv/sbayvO ykI/xO15olo6VRQaLhvYe3Vbrya52Sh5ZPKJka8uZAEowHB9fK6EPSP4or4y1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691732264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0NhaRUfjZ5WVX9dS5OWPi10XwuTwaGIvFZKWYOA/Z8c=; b=iefOCCU4Es6YlExHr3WP1BepCfA1cKEw4E7iRO0guH8RVZHqQrNaL2GOeJUje8VxQubau2 8Xz5QQTt4/jFRezjnDZbmDnXSPfe+omjbro/leCNvHAiG/E4BY7RV9VhL/VVhYgEouTAx0 BVlUAHsN09Wnkv//Rm/LE4TG3469ES7etf//4CrZNfh/aT0FFy9ywdau3jwNJ0lXwuPjoH Bxly9SQRcQ2jJfilvP2m9mN3IVJ1yHf7dbupiH6fNb73NDxbdMcSQyHxXbNQ4NgepnRO22 5yKgHvp7VRJzESUi1acIVTjsZsEX+dQLGQsLpFETNwFAoCJY62/M1lI3oyJZ2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691732264; a=rsa-sha256; cv=none; b=O8HHMRPGH1StP58B2Vvb8dq0WaChNOygA+kzU5ASCWzDHOtqxvveY4il5JM18opxNpXuq/ t4jBsVj+AjbO/7qKj4gT+oQW6b08EwBLC6CHUGS4gHfFTf4EtX/DcWnMGmlRjOMexawzKq aswIH8dR+bTuMA8fe8YHkpZEgK1W4R9nFbk8pqeK9cmRMd0AHztN1UyHEC4DLtZ/CD0sgT X7wTeaugHOU7Y2UXLCgNAwej4z7pcYVU2OIbi1TsjV7zicPcXs9o5vc2u/ovuImtBpQVRO 3zjd5rI6sr9Er71wwWn0V/hKfr+QeDEmIdeZ8TrLZLPWfKO8UpJXCw+r0LIxNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: by freefall.freebsd.org (Postfix, from userid 1403) id CE4B816E7E; Fri, 11 Aug 2023 05:37:43 +0000 (UTC) Date: Fri, 11 Aug 2023 05:37:43 +0000 From: "Piotr P. Stefaniak" To: Jamie Landeg-Jones Cc: freebsd-current@freebsd.org Subject: Re: ps(1) bugs and problems Message-ID: References: <202307282307.36SN7b7v026284@donotpassgo.dyslexicfish.net> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: I thought about this more and the change I proposed in https://reviews.freebsd.org/D41231 seems unnecessarily complicated, regardless of which characters will be chosen to denote going up and down the process tree. ps -D'^$' suggests there are possibly more characters to use and maybe even some kind of DSL is available. So a simpler option is to keep the new aspect of -d (that it traverses the tree down, even if ps is given a list of PIDs) and add a -D that would work the same, but the other direction. Piotr