Write a function named funload that takes as its single argument the name of a file containing other functions. The purpose of funload is to make all functions in the named file available in the current shell; that is, funload loads the functions from the named file. To locate the file, funload searches the colon-separated list of directories given by the environment variable FUNPATH. Assume the format of FUNPATH is the same as PATH and the search of FUNPATH is similar to the shell’s search of the PATH variable.
What will be an ideal response?
$ function funload () {
> filnam=$1
> IFS=:
> set $FUNPATH
> for i
> do
> if [ -f $i/$filnam ]
> then
> source $i/$filnam
> fi
> done
> }
You might also like to view...
What do you call the hybrid topology in which the signaling topology is a bus (contained within a box), but the physical topology is a star?
What will be an ideal response?
Changing the slide master affects the appearance of all of the slides in a presentation associated with that master slide or layout.
Answer the following statement true (T) or false (F)
You decide to add a new architectural feature to a processor by creating some new instructions; that is, you are extending its ISA. What consequences could these additions have for the existing ISA?
What will be an ideal response?
An image from a digital camera will have a ____ channel.
a. red b. blue c. black d. green