Using Factor for shell scripting
Sunday, November 26, 2006
For a while now you could pass a source file to the Factor runtime to
have it be run on startup. Now you can also pass a code snippet to
evaluate:
./f -e='2 2 + .'
If you want Factor to exit immediately after,
./f -e='2 2 + .' -shell=none