|9.||Write a sequence of commands or a script that demonstrates that parameter expansion occurs before variable expansion and that variable expansion occurs before pathname expansion.|
|10.||Write a shell script that outputs the name of the shell that is executing it.|
|11.||Type in the following shell scripts and run them:
$ cat report_dir old_dir=$(pwd) echo "Current working directory: " $old_dir go_home echo "Current working directory: " $(pwd) $ cat go_home cd echo "New working directory: " $(pwd) echo "Last working directory: " $old_dir
What is wrong? Change them so that they work correctly.
|12.||The following is a modified version of the read2 script from page 574. Explain why it behaves differently. For what type of input does it ...|