exec

exec#

Replace the current shell with a command (shell built-in).

$ exec bash
$ exec 3< file
$ exec > out.log 2>&1