3 ms·
A shell has three parts: * the command editor * the command interpreter/parser * the fork()/exec() calls I think you're talking about the fork()/exec() calls.
by strager 5y ago
A shell has three parts:
* the command editor
* the command interpreter/parser
* the fork()/exec() calls
I think you're talking about the fork()/exec() calls. I'm primarily talking about the command editor.
- thaumasiotes 5y agoOK, so on the server we have a protoshell running which accepts commands and makes system calls. (I don't think your three-part listing makes sense: commands are the input to the shell, and system calls are the output. But you can't separate them -- without input, what output are you producing?) And now, on the client, we have a command editor running which accepts keystrokes and produces commands. But the client runs on a different machine. It doesn't know what commands the protoshell over on the server can accept. How does it know what commands to produce?