QuestionQ109

VerifiedEssential Commands

From a Bash shell, which of the following commands execute the instructions in /usr/local/bin/runme.sh directly without launching a subshell? (Please select TWO answers.)

Choose two
Explanation

The Bash builtins source and . read commands from a file and execute them in the current shell process. Consequently, shell state changes made by that file, such as variable assignments or directory changes, remain in the invoking shell and no subshell is started.

Community Discussion

No comments yet. Be the first to start the discussion!