Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I assumed the POSIX interpretation of subshell ("A shell execution environment, distinguished from the main or current shell execution environment.") and child process ("A new process created (by fork(), posix_spawn(), or posix_spawnp()) by a given process."). But if bash systematically ties one to the other, then indeed it makes little sense to try and distinguish them there. Commented Nov 12, 2021 at 22:12
  • From the ksh93 answer, I'd say the difference between subshell and child process is merely an implementation detail, and for nearly all shells, it isn't different. Commented Nov 12, 2021 at 22:59