Hi,

I suspect some terminal issue here. When providing a file with some lines 
in it, things work as expected:

user=> (with-open [in (clojure.lang.LineNumberingPushbackReader.
                        (clojure.java.io/reader "foo.txt"))]
         (binding [*in* in]
           (loop [lines (repeatedly read-line)]
             (println "You entered:" (first lines))
             (when (not= "q" (first lines))
               (recur (next lines))))))
You entered: a
You entered: b
You entered: c
You entered: q
nil

Note how 1, 2 and 3 following q are not printed and no hang is encountered.

Kind regards
Meikel

-- 
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