October 2000
Intermediate to advanced
432 pages
9h 9m
English
This section provides some tips about how to actually go about writing your macros after you have decided what it is that you want to test and how to go about testing for it. It covers writing shell code for the test and optionally caching the results of those tests.
It is necessary to adopt a technique of writing portable Bourne shell code. Often, shell programming tricks you might have learned are actually extensions provided by your favorite shell and are non-portable. When in doubt, check documentation or try the construct on another system's Bourne shell. For a thorough treatment of this topic, see Chapter 21, "Writing Portable Bourne Shell."
Writing macros ...
Read now
Unlock full access