"Piotr P. Stefaniak" <ps...@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

Reply via email to