tags:

views:

176

answers:

1

I want to type something like 'scheme file.scm' and have it interpret the file, and then take me back to my shell, rather than loading it in the REPL.

edit: I tried scheme < test.scm and it still uses the REPL, the only difference is that scheme exits when the stream ends.

A: 

scheme <file.scm should work (as long as you don't specify --interactive and stdin is not a terminal, scheme works non-interactively).

Alex Martelli