Page 1 of 1

(read-line) and CONTROL-D

Posted: Sun May 15, 2011 6:24 am
by kanen
What the ****?!?

Code: Select all

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

Re: (read-line) and CONTROL-D

Posted: Sun May 15, 2011 2:18 pm
by Lutz
An uncleared EOF condition on the input stream in 'read-line'.

This is fixed here: http://www.newlisp.org/downloads/develo ... nprogress/

Re: (read-line) and CONTROL-D

Posted: Sun May 15, 2011 7:51 pm
by rickyboy
Wow, Lutz! Very fast turnaround. Obviously, California hasn't slowed you down. ;) Thanks! --Ricky

Re: (read-line) and CONTROL-D

Posted: Sun May 15, 2011 8:37 pm
by Lutz
Pasadena coffee shops keep me well caffeinated ;)

Re: (read-line) and CONTROL-D

Posted: Fri May 20, 2011 3:29 am
by kanen
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! :)
Lutz wrote:An uncleared EOF condition on the input stream in 'read-line'.

This is fixed here: http://www.newlisp.org/downloads/develo ... nprogress/