mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-07 03:15:39 +02:00
222 B
222 B
eval
在当前 shell 中以单个命令的形式执行参数,并返回其结果。
- 使用 'foo' 做为参数调用
echo
:
eval "{{echo foo}}"
- 在当前 shell 程序中设置变量:
eval "{{foo=bar}}"