builtin

eval

Evaluates shell text in the current shell. Never pass untrusted data. This probe uses a fixed authored constant; prefer ordinary commands or arrays.

Formal Syntax & Structure

bash syntaxbash
eval [arg ...]

Return Value

exit status

Evaluates shell text in the current shell. Never pass untrusted data. This probe uses a fixed authored constant; prefer ordinary commands or arrays.

Working Example

Example Snippetbash
eval 'printf "fixed\n"'
Bash Reference