Re: (warn) isn't doing what I expect it to
- From: Lars Brinkhoff <lars.spam@xxxxxxxxxx>
- Date: Tue, 30 Aug 2005 15:52:49 +0200
Kent M Pitman <pitman@xxxxxxxxxxx> writes:
> Lars Brinkhoff <lars.spam@xxxxxxxxxx> writes:
> > Kent M Pitman <pitman@xxxxxxxxxxx> writes:
> > > Additionally, there were some systems where you pressed Enter (a
> > > key distinct from Return or Linefeed) and this meant not to add
> > > a newline character but to activate immediately, submitting what
> > > had been typed but not any termination key.
> > That's ^D in Unix (except ^D on an empty line will usually be
> > interpreted as EOF).
> And i think some *nix based Lisp systems will close the input stream
> when they see a ^D, which isn't so good if you're doing a REPL on
> that stream.
(This is no longer very Lisp-related, so I'll just write this
additional article.)
They don't see ^D, they see the current input line, without any
terminting character. (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]
.
- Follow-Ups:
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- References:
- (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Edi Weitz
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Pascal Bourguignon
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- From: Lars Brinkhoff
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- (warn) isn't doing what I expect it to
- Prev by Date: Re: Concentration in OCaml
- Next by Date: Re: simple-streams
- Previous by thread: Re: (warn) isn't doing what I expect it to
- Next by thread: Re: (warn) isn't doing what I expect it to
- Index(es):
Relevant Pages
|