(read-line) and CONTROL-D

Started by kanen, May 14, 2011, 11:24:00 PM

Previous topic - Next topic

kanen

What the ****?!?


(setf stopme nil)
(while (nil? stopme)
  (setf r (read-line))
  (if (find "exit" r) (setf stopme true))
  (println "Line: " r)
)


Run this. Type a few keys, hit ENTER.



Now, hit CONTROL-D



(be prepared to hit Control-Z and then kill newlisp)
. Kanen Flowers http://kanen.me[/url] .

Lutz

#1
An uncleared EOF condition on the input stream in 'read-line'.



This is fixed here: http://www.newlisp.org/downloads/development/inprogress/">http://www.newlisp.org/downloads/develo ... nprogress/">http://www.newlisp.org/downloads/development/inprogress/

rickyboy

#2
Wow, Lutz!  Very fast turnaround.  Obviously, California hasn't slowed you down. ;)  Thanks!  --Ricky
(λx. x x) (λx. x x)

Lutz

#3
Pasadena coffee shops keep me well caffeinated ;)

kanen

#4
My goal is to have something I've requested or found referenced in every set of release notes since 2005...



Looks like I'm in 10.3.1 too! :)


Quote from: "Lutz"An uncleared EOF condition on the input stream in 'read-line'.



This is fixed here: http://www.newlisp.org/downloads/development/inprogress/">http://www.newlisp.org/downloads/develo ... nprogress/">http://www.newlisp.org/downloads/development/inprogress/
. Kanen Flowers http://kanen.me[/url] .