[gambit-list] using the gsc repl non-interactively
feeley at iro.umontreal.ca
Wed Jan 28 00:18:39 EST 2009
On 27-Jan-09, at 9:48 PM, Marijn Schouten (hkBst) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Hi lists,
> for building JazzScheme it is necessary to issue commands at the
> gscrepl. For
> packaging up JazzScheme for Gentoo I need some way to do that in a
> bash script.
> I'm trying to get the quit command of JazzScheme's build system to
> work for now.
> These don't work:
> gsc <<<"quit"
> gsc /dev/stdin <<<"quit"
> gsc -e '(load "kernel/build") quit'
> Any ideas?
Use the -:d- runtime option (which forces the REPL to use stdin/stdout):
% echo "(+ 1 2)" | gsc -:d- -i
*** EOF again to exit
More information about the Gambit-list