I have a file called test.scm that looks like:
(display 5)
and when I go like this
cat test.scm | scheme
or like this
scheme < test.scm
or like this
cat test.scm | scheme > output.txt
I get
MIT/GNU Scheme running under GNU/Linux
Type `^C' (control-C) followed by `H' to obtain information about interrupts.
Copyright (C) 2011 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Image saved on Sunday February 7, 2016 at 10:35:34 AM
Release 9.1.1 || Microcode 15.3 || Runtime 15.7 || SF 4.41
LIAR/x86-64 4.118 || Edwin 3.116
1 ]=> 5
;Unspecified return value
1 ]=>
End of input stream reached.
Moriturus te saluto.
What do I have to do to get the following?
5