Multiple choice technology operating systems

Shell functions are self-contained and cannot be accessed from outside the function

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Shell functions are not self-contained - they can access and modify variables from the calling shell scope. Variables changed inside a function affect the parent scope unless declared local. Functions can also be called from anywhere in the script or shell session after definition.