exec [command args ...]exec [-a name] [-c] [command args ... ]Execute command in place of the current process (instead of creating a new process). exec is also useful for opening, closing, or copying file descriptors. The second form is for ksh93 only.
-aUse name for the value of argv[0].
-cClear the environment before executing the program.
trap 'exec 2>&-' 0 Close standard error when shell script exits (signal 0) $exec /bin/cshReplace Bourne shell with C shell $exec < infileReassign standard input to infile