From 3169070063b2cb877200117ebb384269d73bcb93 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Mon, 24 Mar 2014 16:32:24 -0500 Subject: Current state of mal for Clojure West lighting talk. --- bash/step0_repl.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bash/step0_repl.sh (limited to 'bash/step0_repl.sh') diff --git a/bash/step0_repl.sh b/bash/step0_repl.sh new file mode 100755 index 0000000..261ecc2 --- /dev/null +++ b/bash/step0_repl.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +READ () { + read -u 0 -e -p "user> " r +} + +EVAL () { + r= + eval "${1}" +} + +PRINT () { + r="${1}" +} + +while true; do + READ + EVAL "${r}" + PRINT "${r}" + echo "${r}" +done -- cgit v1.2.3