.TH "exec" 1 "8 Feb 2007" "Version 1.22.3" "fish" \" -*- nroff -*- .ad l .nh .SH NAME exec - execute command in current process .PP .SS "Synopsis" \fCexec COMMAND [OPTIONS...]\fP .SS "Description" The \fCexec\fP builtin is used to replace the currently running shells process image with a new command. On successful completion, exec never returns. exec can not be used inside a pipeline. .SS "Example" \fCexec emacs\fP starts up the emacs text editor. When emacs exits, the session will terminate.