Suppose ABD_DIR is a local variable. Then it will be accessible to the child process.

Lâm Phung

New member
Suppose ABD_DIR is a local variable. Then it will be accessible to the child process.
A. True
B. False
 
Answer: b
Explanation: Since ABD_DIR is a local variable and local variables are more restricted to the scope so it will not be accessible to the child process. For example,
Code:
$ ABD_DIR=/home/users/abd/doc       // local variable in parent process
$echo ABD_DIR
home/users/abd/doc
$ sh                              // create a child shell
$echo ABD_DIR
_                                // variable not available in child shell
 

Tìm kiếm

Back
Top