Fork me on GitHub

MIT Scheme: Run a script

scheme < script.scm | grep ";Value:" | sed "s/;Value: /Result: /"

This command show the result of the script only, and get rid of scheme's verbosity.

I personally added it as a function to my shell:

scheme-run () { scheme < $1 | grep ";Value:" | sed "s/;Value: /Result: /" }

I now now only need to run scheme-run script.scm to execute a script.