Re: (warn) isn't doing what I expect it to



Lars Brinkhoff <lars.spam@xxxxxxxxxx> writes:

> (This is no longer very Lisp-related, so I'll just write this
> additional article.)

I don't see how a discussion of how Lisp I/O interacts with the computer
is somehow not related to Lisp, so I'll blunder forth.

> They don't see ^D, they see the current input line, without any
> terminting character.

Hmm. Interesting to know.

> (If the line is empty, there will be zero characters, interpreted as EOF.)
> For example, here's a Lisp session where I used ^D to enter three input
> lines:
>
> This is SBCL [...]
> * 42
> 42
> * (defun foo () (quit))
> FOO
> * (foo)[Exit]

Btw, for me, on both LispWorks 4.4.5 and Allegro 7.0 on Linux, control-D on
a teletype (i.e., in a REPL in a shell, not in some GUI/IDE thing)
neither echos nor has any apparent effect. Typed to Emacs with either
of these lisps beneath it by using control-Q to quote it into the
input stream, it just gets ignored, too. That is (if you assume my
notation ^D below is replaced by an actual control-D (ascii 4), then:
3^D4 => 34
(+ 3 ^D 4) => 7

I'm not challenging your claim--just offering information about how other
implementations handle it. (I assume. I guess it's possible it's the Linux
or my terminal settings.)
.



Relevant Pages

  • Re: Lisp article at IBM
    ... LISP community to TeX or to any other community claiming smartness... ... with such ease and elegance. ... code with and I'm pleased I have GNU Linux, but if the rest of the world cannot ...
    (comp.lang.lisp)
  • Re: Academic software
    ...  They should be innovating. ... Linux is here now and it is crap. ... Lisp OS'es then why didn't you? ... I really don't care much about C and Linux/Unix. ...
    (comp.lang.lisp)
  • Re: A lisp foundation - a model for open source development?
    ... Such an organization could provide funding to people that would: ... write more good documentation (Peter Seibel's Practical Common Lisp ... required except on Linux or the BSDs, ... Try getting hold of EPSRC money without university connections. ...
    (comp.lang.lisp)
  • Re: Lisp Optimised Workstation
    ... Get a uinxy lisp system that does not need to run external programs ... Build a CD with your favorite boot code from either linux or *bsd, ... > with a link to /sbin/init (or where ever your kernel expects to find ...
    (comp.lang.lisp)
  • Re: Hunchentoot for production use and more questions...
    ... representing a page on the website. ... seems to be the only lisp package that does that... ... use a Linux box... ... Hunchentoot is just part of the ...
    (comp.lang.lisp)