Korn Shell Options (set)

If you choose to use the Korn shell as your shell, there are many options you can use to change the behavior of the Korn shell. Many of these options are described in the ksh man pages, but I’ve listed a few in Table 3.2 that you might want to consider using.

Table 3.2. Korn Shell Options
Option Description
-a Automatically exports all variables
-C noclobber; prevents existing files from getting clobbered (overwritten) when you use >> or > (I/O re-direction). See the section on redirection later in this chapter.
-v verbose; displays each shell input line as it is read and is a good tool for debugging scripts.
-x debug; displays commands and arguments as the commands are executed and is another good tool for debugging ...

Get Inside Solaris™ 9 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.