From d6e36290aba9d638871547b55c1879a05453e4b9 Mon Sep 17 00:00:00 2001 From: Thomas Barusseau Date: Tue, 5 Dec 2017 04:23:13 +0100 Subject: [PATCH] eval: add page (#1701) --- pages/linux/eval.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/linux/eval.md diff --git a/pages/linux/eval.md b/pages/linux/eval.md new file mode 100644 index 000000000..ee1135a91 --- /dev/null +++ b/pages/linux/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}}"`