Skip to content
Henk van Cann edited this page Sep 21, 2023 · 2 revisions

Definition

A subshell is basically a new shell just to run a desired program. A subshell can access the global variables set by the 'parent shell' but not the local variables. Any changes made by a subshell to a global variable is not passed to the parent shell.
Source

Parent - and child process

A child process in computing is a process created by another process (the parent process). This technique pertains to multitasking operating systems, and is sometimes called a subprocess or traditionally a subtask.
More on source Wikipedia

Clone this wiki locally