Multiple choice technology programming languages

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 CAN be accessed from outside the function - they are not self-contained in the sense of being isolated. Once defined, a shell function can be called from anywhere in the script or interactive shell where it is defined. Functions share the shell environment and can access/modify global variables. The claimed answer is correct.