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...

Create a separate table with the same structure as the Booking table to hold archive records. Using the INSERT statement, copy the records from the Booking table to the archive table relating to bookings before 1st January 2013. Delete all bookings before 1st January 2013 from the Booking table.

What will be an ideal response?

Computer Science & Information Technology

The expression Write Triangle.Height refers to an object named __________.

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is the proper way to dynamically access the background color from within the script?

a. ``` document.body.style.BackgroundColor ``` b. ``` document.body.attributes.BackgroundColor ``` c. ``` document.body.style.backgroundColor ``` d. ``` document.body.style.background-color ```

Computer Science & Information Technology

Which of the following statements outputs the following?This is line 1.This is line 2.

A. document.write("This is line 1."); document.write("This is line 2."); B. var BR = "
"; document.write("This is line 1." "BR"); document.write("This is line 2." "BR"); C. document.write"This is line 1."; document.write"This is line 2."; D. var BR = "
"; document.write("This is line 1." + BR); document.write("This is line 2." + BR);

Computer Science & Information Technology