UNIX for OpenVMS Users, Third Edition

Within your shell of choice, you need not worry about the distinction between built-in shell commands and separate programs called by the shell. However, C shell users who invoke the bash or Korn shells, or Korn and bash shell users who invoke the C shell, will discover that some familiar commands are not available. Some built-in shell commands discussed elsewhere are dirs, pushd, and popd for manipulating the directory stack; fg, bg, and jobs for background processing; at, kill, and nice for affecting processes; shift, alias, export, and integer for controlling variables; and history for reviewing the history list. Regardless of which shell is used, Perl programs should only call other programs rather than trying to access shell built-in functions, which, even if available, may not work as expected. In most cases, Perl provides its own built-in equivalent, or the same functionality can easily be achieved by other means.
We now introduce several new built-in shell commands particularly useful in shell programming: onintr and trap, which redirect the control of a script when an interrupt is issued; eval, which executes a command built from variables (forces the current process to interpret any shell metacharacters before performing the variable substitution); time, which determines the execution time and elapsed (wall-clock) time of a command or shell script; and . (dot) and source, which force the execution of commands or...