-----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?
Thanks,
Marijn
- -- Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML http://www.gentoo.org/proj/en/lisp/, #gentoo-{lisp,ml} on FreeNode
Afficher les réponses par date
Use pipes or sockets, and have gambit take its input there? I had done that once to quickly link gambit to my text editor…
P!
2009/1/28 Marijn Schouten (hkBst) hkBst@gentoo.org
-----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?
Thanks,
Marijn
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML http://www.gentoo.org/proj/en/lisp/, #gentoo-{lisp,ml} on FreeNode -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkl/x24ACgkQp/VmCx0OL2w94gCgnSamg75D9QrjtG/Bsb4TgsRa zGYAnjQG5KPONS+2igr/w/xLyJSuraOL =HXyc -----END PGP SIGNATURE----- _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
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 Gambit v4.4.0
3
*** EOF again to exit %
Marc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Marc Feeley wrote:
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 Gambit v4.4.0
3
*** EOF again to exit %
Marc
When doing that it seems that gambit does not load the .gambcini file anymore that comes with Jazz. If I try to load it manually it won't work:
$ gsc -:d- -i <<<'(include ".gambcini") quit'
Gambit v4.4.0
"/var/tmp/portage/dev-scheme/jazzscheme-2.1.0/work/jazzscheme-2.1.0/kernel/build.scm"
*** ERROR IN (stdin)@1.23 -- Unbound variable: quit
1>
*** EOF again to exit
if I just start gsc it says:
JazzScheme Build System v2.1.0 beta
%
Marijn
- -- Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML http://www.gentoo.org/proj/en/lisp/, #gentoo-{lisp,ml} on FreeNode