Computer Science Fundamentals Operating Systems Objective
Mar 11, 2013

The .(dot) shell command

Choose the correct answer:
A) Can take command line argument
B) Will fork a child shell to execute the named shell script
C) Can be used to change the environment of the current shell
D) All of these
Detailed Explanation

Any shell script will not be executed hy the current shell. The current shell forks a new shell that executes the named shell script and terminates after it. So, any variable exported in the shell script will not be recognized by the parent shell. The (dot) command makes the named shell script to be executed by the current shell. On the negative side . (dot) commands like( profile) don't accept command line arguments.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback