Martin Costabel wrote:
>
> Good catch. To me this looks like a bug in Leopard's /bin/ps: When the
> "-a" flag is present, it ignores the "-p pid" flag. I have immediately
> filed a bug with Apple's bugreporter.
I imagine that it will be closed as invalid. With -a, you are
essentially asking for all processes with a controlling terminal, with
-p you ask for all processes which match the given process id. ps will
return both all the processes with a controlling terminal and all
processes matching the pid.
$ ps -a | wc -l
4
$ ps -a -p 1 | wc -l
5
http://www.opengroup.org/onlinepubs/000095399/utilities/ps.html
Peter
--
Peter O'Gorman
http://pogma.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel