One Comment

  1. From ABS guide:

    Running a shell script launches a new process, a subshell.

    Definition: A subshell is a child process launched by a shell (or shell script).

    A subshell is a separate instance of the command processor — the shell that gives you the prompt at the console or in an xterm window. Just as your commands are interpreted at the command-line prompt, similarly does a script batch-process a list of commands. Each shell script running is, in effect, a subprocess (child process) of the parent shell.

    A shell script can itself launch subprocesses. These subshells let the script do parallel processing, in effect executing multiple subtasks simultaneously.

Leave a Reply

Your email address will not be published. Required fields are marked *