From ddd9c42b1445518aca3b22839ceb35ce84fa0073 Mon Sep 17 00:00:00 2001 From: wizarot Date: Tue, 26 Feb 2019 11:12:32 +0800 Subject: [PATCH] eval: add Chinese translation --- pages.zh/osx/eval.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages.zh/osx/eval.md diff --git a/pages.zh/osx/eval.md b/pages.zh/osx/eval.md new file mode 100644 index 000000000..c5d7a65aa --- /dev/null +++ b/pages.zh/osx/eval.md @@ -0,0 +1,11 @@ +# eval + +> 在当前shell中以单个命令的形式执行参数,并返回其结果. + +- 使用 'foo' 做为参数调用 `echo`: + +`eval "{{echo foo}}"` + +- 在当前 shell 程序中设置变量: + +`eval "{{foo=bar}}"`