~ chicken-core (chicken-5) c9ea34e979ff3bc36c29d71a7192953c002abb30
commit c9ea34e979ff3bc36c29d71a7192953c002abb30 Author: Mario Domenech Goulart <mario@parenteses.org> AuthorDate: Sun Jul 18 18:04:44 2021 +0200 Commit: Mario Domenech Goulart <mario@parenteses.org> CommitDate: Sun Jul 18 18:04:47 2021 +0200 manual/Using the interpreter: fix missing import Examples were missing `(import (chicken port))' for with-input-from-string. Reported in chicken-users: https://lists.nongnu.org/archive/html/chicken-users/2021-07/msg00022.html diff --git a/manual/Using the interpreter b/manual/Using the interpreter index d70fdf23..05578431 100644 --- a/manual/Using the interpreter +++ b/manual/Using the interpreter @@ -16,7 +16,8 @@ The easiest way is to use the {{-script}} option like this: % cat foo #! /usr/local/bin/csi -script - (import (chicken process-context)) + (import (chicken port) + (chicken process-context)) (print (eval (with-input-from-string (car (command-line-arguments)) read))) @@ -35,7 +36,8 @@ this on Windows: C:>type foo.bat @;csibatch %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 - (import (chicken process-context)) + (import (chicken port) + (chicken process-context)) (print (eval (with-input-from-string (car (command-line-arguments)) read)))Trap