0
我有一個名爲test.scm文件看起來像:如何在非複製模式下使用mit/gnu方案?
(display 5)
,當我再這樣下去
cat test.scm | scheme
或類似這樣的
scheme < test.scm
或類似這樣的
cat test.scm | scheme > output.txt
我得到
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.
我需要做些什麼才能得到以下內容?
5
可能的重複[如何使用MIT-Scheme執行.scm腳本(在REPL之外)?](https://stackoverflow.com/questions/903968/how-do-i-execute-a- SCM-腳本外的最REPL-與麻省理工學院的方案) – Flux