Home OS X
OS X Syntax

eval

Evaluate several commands/arguments.

SYNTAX
        eval arg ...    

Treats the arguments as input to the shell and executes the resulting command(s) in the context of the current shell.

This is usually used to execute commands generated as the result of command or variable substitution, because parsing occurs before these substitutions.

`eval' is a tcsh shell command.

"It isn't easy being green" - Kermit the Frog

Related commands:

awk
- Find and Replace text within file(s)
case - Conditionally perform a command
expr - Evaluate expressions
foreach - Loop, expand words, and execute commands
test - Condition evaluation

Equivalent BASH command:

eval
- Evaluate several commands/arguments



Back to the Top

Simon Sheppard
SS64.com