switch to tail -f circular pipes
[jackhill/mal.git] / d / step8_macros.d
index a39ff89..01e9432 100644 (file)
@@ -261,7 +261,7 @@ void main(string[] args)
 
     // core.mal: defined using the language itself
     re("(def! not (fn* (a) (if a false true)))", repl_env);
-    re("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))", repl_env);
+    re("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \"\nnil)\")))))", repl_env);
     re("(defmacro! cond (fn* (& xs) (if (> (count xs) 0) (list 'if (first xs) (if (> (count xs) 1) (nth xs 1) (throw \"odd number of forms to cond\")) (cons 'cond (rest (rest xs)))))))", repl_env);
 
     if (args.length > 1)