Skip to main content

Execute arguments as a single command in the current shell and return its result.

# To call 'echo' with the 'foo' argument:
eval "echo foo"

# To set a variable in the current shell:
eval "foo=bar"