Subject: Re: sysv ps(1) implementation [was: ps(1) sysv silliness]
To: Greywolf <greywolf@starwolf.com>
From: Todd Vierling <tv@pobox.com>
List: tech-userlevel
Date: 06/08/2000 15:40:03
On Thu, 8 Jun 2000, Greywolf wrote:
: # The letters may line up, but those that do are not the same between the
: # modes! For instance, "-e" means something very different to each.
:
: Why not just do a force to sysV via -A and leave it at that?
Because people don't traditionally use "-A" in sysv scripts that need the
output of "ps". It's usually something more like "ps -el" or "ps -ef".
: # - the ability to symlink /emul/svr4/usr/bin/ps to /usr/5bin/ps and get
: # something that will make SVR4 scripts happy when runningin a SVR4 shell.
:
: Hm. This might make a compelling argument, except that once you go
: to EMUL_SVR4, doesn't everything else after that try to run under the
: same emulation?
No. exec() chooses emulation based on binary format--_after_ it resolves
the path name (/emul/svr4/usr/bin/ps).
--
-- Todd Vierling (tv@pobox.com)