EXEC(1)

NAME

exec - replace the shell with a command, or apply redirections to the current shell.

SYNOPSIS

exec [command [argument ...]]

DESCRIPTION

exec is a POSIX special builtin provided by Rush. Replace the shell with a command, or apply redirections to the current shell.

This page summarizes the builtin in Rush documentation. POSIX is the normative reference for detailed portable behavior.

EXIT STATUS

See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.

SEE ALSO

rush-builtins(7), POSIX Shell Command Language.