scsh-users
[Top] [All Lists]

make-string-port-filter

To: scsh <scsh@zurich.csail.mit.edu>
Subject: make-string-port-filter
From: Andreas Bernauer <andreas.bernauer@gmx.de>
Date: Tue, 3 Feb 2004 16:31:47 -0500
Mail-followup-to: scsh <scsh@zurich.ai.mit.edu>
Hi,

isn't that supposed to work?

[andreas@hgt scsh-0.6.6]$ ./go
Welcome to scsh 0.6.6 (beta version 2)
Type ,? for help.
> (run (| (ls) (begin ((make-string-port-filter (lambda (x) x))))))

Error: buffer size must be at least 1 for input ports
       #{Input-fdport #{Input-channel 0}}
       0
       0
256
>

Even if I add the buffersize explicitely, I get:

> (run (| (ls) (begin ((make-string-port-filter (lambda (x) x) 1024)))))

Error: buffer size must be at least 1 for input ports
       #{Input-fdport #{Input-channel 0}}
       0
       0
256
>

When I try the example for char-port-filter from the manual, it works:
(http://www.scsh.net/docu/html/man-Z-H-3.html#node_idx_66)

> (run (| (ls) (begin ((make-char-port-filter char-downcase)))))
build
c
cig
config.guess
...

It does not work on scsh 0.6.4, either.  What am I missing?  How does
make-string-port-filter work?

I'd like to give you a backtrace, but scsh does not give me the chance
to do so.

Andreas.

Attachment: pgpVqZQC8fgCE.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>