(read-line) and CONTROL-D

Q&A's, tips, howto's
Locked
kanen
Posts: 145
Joined: Thu Mar 25, 2010 6:24 pm
Contact:

(read-line) and CONTROL-D

Post 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)
. Kanen Flowers http://kanen.me .

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: (read-line) and CONTROL-D

Post by Lutz »

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

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

rickyboy
Posts: 607
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: (read-line) and CONTROL-D

Post by rickyboy »

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: (read-line) and CONTROL-D

Post by Lutz »

Pasadena coffee shops keep me well caffeinated ;)

kanen
Posts: 145
Joined: Thu Mar 25, 2010 6:24 pm
Contact:

Re: (read-line) and CONTROL-D

Post 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/
. Kanen Flowers http://kanen.me .

Locked