The example near the top of Sobell, page 486, demonstrates a way to put a variable in the environment of a script you are calling without declaring the variable in the interactive shell you are running. Use this technique to assign a value to myvar, place it in the environment of echomyvar, and run echo- myvar. After running the script, is myvar set in the interactive shell?

What will be an ideal response?

$ myvar=sam ./echomyvar
The PID of this process is 4411
The value of myvar is: sam
$ echo $myvar
$
No, myvar is not set in the interactive shell.

Computer Science & Information Technology

You might also like to view...

High Definition (HD) radio offers reduced static and noise in the digital signals

Indicate whether the statement is true or false

Computer Science & Information Technology

Files with the ________ extension are formatted as the creator intended and read only and readable by a free downloadable program

Fill in the blank(s) with correct word

Computer Science & Information Technology