March 2002
Beginner
504 pages
10h 47m
English
| 1: | What are the three main forms of enabling debugging in a shell script? |
| A1: | The three main methods are
Here option is the debugging option you want to enable. |
| 2: | Enhance the Debug() function given in this chapter so that the programmer has to press Enter or Return after debugging is deactivated. When you debug scripts that have several dozen functions, this feature enables you to study the debugging output from a particular function before executing the next function. |
| A2: | Here is one possible implementation:
Debug() { if [ "$DEBUG" = "true" ] ; then if [ "$1" ... |
Read now
Unlock full access