the first part shows the situation before
ls is executed. Bash is a childprocess of the terminal emulator xterm and they have the same aura, the environment, around them. The xx marks indicate, that both Xterm and Bash, as Father-and Sonprocesses posess the identical set of environment variables.
the second part shows what happens after one has started a new process, namely ls.
- Bash fathers a childprocess,which is an exact copy of itself, therefore I named it Bash_c (short for Bash_copy).
- Then, Bash_c is being replaced by the ls process.
I think this diagram is straightforwarded, selfexplanatory, intuitive and non-ambiguous.
However, I have not drawn a diagram for
(ls), because I do not know how it looks like, I have a few different scenarios for how it could look like, but here starts the question part: How would a diagram for
(ls) look like? please draw and comment.