本文介绍了mit-scheme-运行脚本并退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我想从makefile中评估一个脚本并退出,就像这样

I want to evaluate a script from makefile and exit, like this

mit-scheme --load "fact.scm"

但是,在评估文件后,它不会退出,并且会出现repl;如果尝试(exit)原语,则要求确认y/n.有可能解决这个问题吗?

However, after it evaluates the file, it does not exit, and the repl appears; if I try the (exit) primitive, it asks for confirmation y/n. Is it possible to solve this ?

推荐答案

对于Unix,mit方案通过重定向读取输入文件:

For Unix mit-scheme reads the input files via redirection:

mit-scheme < /usr/cph/foo.in > /usr/cph/foo.out 2>&1 &

这取自文档 http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-user/Command_002dLine-Options.html#Command_002dLine-Options

这篇关于mit-scheme-运行脚本并退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 10:50