2007/5/24, Marek Bernat <[EMAIL PROTECTED]>:
On 5/23/07, Jukka Salmi <[EMAIL PROTECTED]> wrote:
> Sander van Dijk --> dwm (2007-05-23 23:03:10 +0200):
> > On 5/23/07, Marek Bernat <[EMAIL PROTECTED]> wrote:
> >> On the other hand kill, echo and other programs like this should of
course
> >> be outside the shell.
> >
> > Yes, [...]
>
> ...but on a system where you suddenly notice that the process table
> is full and you thus can't fork new processes anymore I bet even you
> will be quite happy if you have a kill(1) built into your still running
> shell... ;-)
Good point. I believe most of the built-ins are there because of reasons
like this.
Sanity vs. purity. Pragmatism vs. ideology :-)
I tend to agree with Sander. If fork() is expensive, it's an OS
problem. By hacking around sh, it only makes it worse because it hides
the real problem.
--
Cheers,
zimbatm