Execute arguments as a shell command.

Synopsis

eval [ARG]...

Description

Concatenate all ARGs with spaces, then execute the result as a shell command. Useful for constructing commands dynamically. Runs in the just-bash WASM shell inside SLICC.

Examples

$ eval "echo hello"

Execute the string as a command.

$ cmd="ls -la"; eval $cmd

Execute a dynamically constructed command.

See Also

exec, source