← Back to context

Comment by rezonant

4 years ago

> Shells have relatively simple operational models, so _any_ API would probably be workable for shells.

You'd think that, but implementing the UNIX shell and all of its semantics (piping, redirection, waiting, child reaping, jobs, foreground/background, prompting etc) using fork/clone + exec* is way more simple than, say, on Windows. Some API designs are better for that specific task