Glossary term
What is subshell? Meaning for developers
A child copy of the shell, so variable changes made inside it do not come back.
Learn it properly · Linux & ShellLesson 4: Shell Scripting: Variables, Conditions, Loops and FunctionsWriting safe bash scripts: quoting, set -euo pipefail, arguments, conditions, loops, functions, trap, and ShellCheck.