[gambit-list] How pipe from shell to gsc ('s repl)?

Adam adam.mlmb at gmail.com
Wed Jul 13 01:30:52 EDT 2016


This does not work too:

$ *cat << 'eof' | gsc /dev/stdin*
>
> *(display "Hello world\n")*
> *,q*
>
> *eof*
*** ERROR IN c#targ-start-dump -- Permission denied
(#<procedure #2> "/dev/stdin.c")







2016-07-13 13:22 GMT+08:00 Adam <adam.mlmb at gmail.com>:

> Marc,
>
> How do I pipe commands into Gambit on "all" unices?
>
> The "-e" argument is not universal so I may just want to pipe to Gambit's
> stdin.
>
> The following just brings you a REPL with no input made to it, and you do
> the typing - does Gambit use some very exotic means of console input, or
> does it empty its read buffer at start?? If so why, and how do I make it
> simply use "stdin"?
>
> cat << 'eof' | gsc
>
> (display "Hello world\n")
> ,q
>
> eof
>
>
> Thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20160713/2ca2e2aa/attachment.htm>


More information about the Gambit-list mailing list