This is actually a fairly good bug report, I think. If you look in clojure.main, the "eval-opt" fuction uses "with-in-str", which unnecessarily interferes with using *in* within the expression you are trying to evaluate. I was actually running into this while trying to make a "lein repl" in clojure rather than in the shell script.
One way to fix it would be to replace it like in this gist: http://gist.github.com/368018. -- Aaron On Sun, Mar 28, 2010 at 9:35 PM, Asim Jalis <asimja...@gmail.com> wrote: > Is this a bug? > > echo "hi" | java -cp $HOME/jars/clojure.jar clojure.main -e '(println > (line-seq (java.io.BufferedReader. *in*)))' > > The output is nil. > > This works fine if argument to -e is saved to a file and then the file > name is specified on the command line. > > -- > Asim > > -- > 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 > > To unsubscribe from this group, send email to > clojure+unsubscribegooglegroups.com or reply to this email with the words > "REMOVE ME" as the subject. > -- 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