-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Wed, 2019-05-15 at 22:57 +0200, Peter Wiehe wrote:
> Thank you very much, but I unsuccessfully tried the following:
> 
> -------------------------
> 
> (define inputfile 0)
> 
> (set! inputfile (open-input-file (car (command-line-arguments))))
> 
> ------------------------
> 
> What is the correct usage of command-line-arguments?

In a script:

        #!/bin/bash
        exec mit-scheme --batch --load program -- "$@"

Then in program.scm you can use command-line-arguments to get
just the script arguments ("$@") or command-line to have it all.

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEELKqfot8xyi0bi8Ssp/sTamsYs6IFAlzch1MACgkQp/sTamsY
s6JZPQv+JeDXvH1Hbd9UKLZqKMTGwjiVtWIR/g/6qSita8OOW/vZ9UumMqjvve4c
sgfQJ+zBOGg8y00la0HA3ExRtrfHSh/flh9K6oABIt1bJOfJU6eOwbTXM85TABLW
0GqjMhzIqMEieKmynPFcTGUesA7GxVnAZLCsC2sleyGq7HcjrJrJjG1g1UZzSZCK
PqrFoyxPD14INgqFlGvg6J6KwKgyov88k7uOnxq4PUPAeyOE6uLw7BmRcaICVpZP
qjSbnoJ/ndMPJfwdgBwBDJUSWi+uinp/T2/MGh6AG4KrlbfpSsB0bTpluN/Ax9Am
T9vUAi8SfZuZAR18BV9YgAuEfXE0oaDnRmCPq49cINsl04yQMbsRH8xzqs5wdbZ7
uA8naxe6n2jJKSZdhGf2VEBzqAqLqCUqDELGbCN35cpVQjCKYaR1JBABk24R9d1f
X1Ui3IPKrcZyl25tx3rXP6Mirvin3bRtcsdTPpzRAypVetj13nat103FV4FDtJwY
h8e8Jw5f
=M9lc
-----END PGP SIGNATURE-----


_______________________________________________
MIT-Scheme-devel mailing list
MIT-Scheme-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-devel

Reply via email to