COHERENT manpages

This page displays the COHERENT manpage for exec [Execute command directly].

List of available manpages
Index


exec -- Command

Execute command directly
exec [command]

The shell normally executes  commands through the system call fork(), which
creates a new process.  The  shell command exec directly executes the given
command  through  one  of the  exec()  functions  instead.  Normally,  this
terminates execution of the current shell.

If the command  consists only of redirection specifications, exec redirects
the input  or output of  the current shell  accordingly without terminating
it.  If the command is omitted, exec has no effect.

See Also

commands,
execution,
fork(),
ksh,
sh,
xargs
POSIX Standard, §3.1.2