On Thu, Oct 27, 2011 at 11:32 AM, Andrew <ache...@gmail.com> wrote:
> At the REPL in Emacs, shouldn't the following code allow me to type
> something followed by [Enter] and then shouldn't it print my input back out?
> (println (read-line))
> When I enter this at the prompt, I immediately see the following. It doesn't
> wait for input.
> user> (println (read-line))
> nil
> nil
> user>
> I thought maybe it was a Windows ^M issue, but this happens in a Linux
> environment as well.

This is just a shortcoming of the way the JVM launches subprocesses;
the stdin of the subprocesses aren't hooked up to the parent process.
You should be able to get around it by using "lein trampoline repl"

-Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to