This works; at least under 11.2, I don't get any confirmation prompt on the (exit)
:
scheme --quiet --load filename --eval '(exit)'
I have this handy-dandy shell function that provides a pseudo-pythonic invocation experience: with no args it drops me into the REPL, but if there is an argument, the first one is taken as a script name and any subsequent args turn into (command-line-arguments)
. This is the definition; as written it works in bash, ksh, or zsh:
function scm {
if (( $# )); then
typeset prog=$1
shift
scheme --quiet --load "$prog" --eval '(exit)' -- "$@"
else
scheme
fi
}