From 6a84b75c289419dbaeee7bbd372a2907fe043b91 Mon Sep 17 00:00:00 2001 From: SAURABH SHARMA <22629916+itsjzt@users.noreply.github.com> Date: Mon, 9 Apr 2018 11:39:28 +0530 Subject: [PATCH] eval: add to osx platform (#2060) --- pages/osx/eval.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/osx/eval.md diff --git a/pages/osx/eval.md b/pages/osx/eval.md new file mode 100644 index 0000000000..ee1135a91d --- /dev/null +++ b/pages/osx/eval.md @@ -0,0 +1,11 @@ +# eval + +> Execute arguments as a single command in the current shell and return its result. + +- Call `echo` with the "foo" argument: + +`eval "{{echo foo}}"` + +- Set a variable in the current shell: + +`eval "{{foo=bar}}"`