exec, eval, source — Shell Built-in Functions to Execute Other Commands


exec [argument...] 
eval [argument...] 
exec command 
eval argument... 
source [-h] name
* exec [arg...] 
* eval [arg...] 


Bourne Shell

The exec command specified by the arguments is executed in place of this shell without creating a new process. Input/output arguments may appear and, if you give no other arguments, they modify the shell input/output.

The arguments to the eval built-in are read as input to the shell and the resulting command(s) executed.

C Shell

exec executes command in place of the current shell, which terminates.

eval reads its arguments as input to the shell and executes the resulting command(s). This command is ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.