December 2002
Intermediate to advanced
1616 pages
39h 57m
English
Commands that are built into a shell do not fork a new process when you execute them. The following sections discuss the exec and trap builtins and are followed by Table 13-6 on page 670, which lists many of the shell builtins.
The exec builtin
has two primary purposes: to run a command without creating a new process and to redirect standard input, output, or error of a shell script from within the script. When the shell executes a command that is not built into the shell, it typically creates a new process. The new process inherits environment (global or exported) variables from its parent but does not inherit ...
Read now
Unlock full access