2025-03-14 21:59:59 -06:00
|
|
|
# eval
|
|
|
|
|
|
|
|
|
|
> Execute arguments as a single command in the current shell and return its result.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-eval>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Call `echo` with the "foo" argument:
|
|
|
|
|
|
|
|
|
|
`eval "{{echo foo}}"`
|
|
|
|
|
|
|
|
|
|
- Set a variable in the current shell:
|
|
|
|
|
|
|
|
|
|
`eval "{{foo=bar}}"`
|