When might it be necessary or advisable to write a shell script instead of a shell function? Give as many reasons as you can think of.

What will be an ideal response?


Because the shell executes a shell function in the same environment as the
shell, it can change the values of variables and create new ones. If creating
new variables and modifying existing ones are not desirable, run a shell
script instead.
Having too many active functions can cause a shell to take a long time to
load, such as when you run a script. If you need to call a lot of routines from
a shell, you might want to make some of them scripts rather than functions.

Computer Science & Information Technology

You might also like to view...

Write a gawk program that uses the cars file (page 629), displays all cars priced at more than $5,000, and sends its output to standard output.

What will be an ideal response?

Computer Science & Information Technology

The Insets class is in the package ______________.

(a) java.awt (b) javax.swing (c) java.util (d) java.lang

Computer Science & Information Technology

Pointing to a circular sizing handle displays a horizontal resize pointer

Indicate whether the statement is true or false

Computer Science & Information Technology

Wireless devices can listen and send at the same time.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology