Re: ps(1) bugs and problems
- Reply: Piotr P. Stefaniak: "Re: ps(1) bugs and problems"
- In reply to: Piotr P. Stefaniak: "Re: ps(1) bugs and problems"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Aug 2023 11:32:02 UTC
"Piotr P. Stefaniak" <pstef@FreeBSD.org> wrote: > 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. That is indeed cleaner, and whilst the new "-D" option would cover the particular use case I mentioned, the old sorting method with arbitary, and specific PIDS is still useful. How about reverting '-d', and adding "-D" for descending, and "-A" for ascending? Cheers, Jamie