Use the export (Sobell, page 485) builtin in the interactive shell to place myvar in the environment and run echomyvar. (You can export myvar with- out assigning a new value to it.) Did the script display the value of myvar this time? Is the PID of the interactive shell the same or different from the PID of the script?
What will be an ideal response?
$ export myvar
$ ./echomyvar
The PID of this process is 4452
The value of myvar is: zach
$ echo $$
2651
Yes, the script displayed the value of myvar; the PIDs are different.
Computer Science & Information Technology
You might also like to view...
The Find and Replace dialog box allows you to do all of the following EXCEPT:
A) find different forms of a word. B) find phrases that are capitalized in the same way. C) locate occurrences of words that sound the same. D) locate words with the same meaning.
Computer Science & Information Technology
Solver is on the Formulas tab
Indicate whether the statement is true or false
Computer Science & Information Technology