Next: , Previous: Invoking SCM, Up: Operational Features


3.2 Options

The options are processed in the order specified on the command line.

— Command Option: -a k

specifies that scm should allocate an initial heapsize of k kilobytes. This option, if present, must be the first on the command line. If not specified, the default is INIT_HEAP_SIZE in source file setjump.h which the distribution sets at 25000*sizeof(cell).

— Command Option: -no-init-file
— Command Option: —no-init-file

Inhibits the loading of ScmInit.scm as described above.

— Command Option: –no-symbol-case-fold

Symbol (and identifier) names will be case sensitive.

— Command Option: —help

prints usage information and URI; then exit.

— Command Option: —version

prints version information and exit.

— Command Option: -r feature

requires feature. This will load a file from [SLIB] if that feature is not already provided. If feature is 2, 2rs, or r2rs; 3, 3rs, or r3rs; 4, 4rs, or r4rs; 5, 5rs, or r5rs; scm will require the features neccessary to support [R2RS]; [R3RS]; [R4RS]; or [R5RS], respectively.

— Command Option: -h feature

provides feature.

— Command Option: -l filename
— Command Option: -f filename

loads filename. Scm will load the first (unoptioned) file named on the command line if no -c, -e, -f, -l, or -s option preceeds it.

— Command Option: -d filename

Loads SLIB databases feature and opens filename as a database.

— Command Option: -e expression
— Command Option: -c expression

specifies that the scheme expression expression is to be evaluated. These options are inspired by perl and sh respectively. On Amiga systems the entire option and argument need to be enclosed in quotes. For instance ‘"-e(newline)"’.

— Command Option: -o dumpname

saves the current SCM session as the executable program dumpname. This option works only in SCM builds supporting dump (see Dump).

If options appear on the command line after ‘-o dumpname’, then the saved session will continue with processing those options when it is invoked. Otherwise the (new) command line is processed as usual when the saved image is invoked.

— Command Option: -p level

sets the prolixity (verboseness) to level. This is the same as the scm command (verobse level).

— Command Option: -v

(verbose mode) specifies that scm will print prompts, evaluation times, notice of loading files, and garbage collection statistics. This is the same as -p3.

— Command Option: -q

(quiet mode) specifies that scm will print no extra information. This is the same as -p0.

— Command Option: -m

specifies that subsequent loads, evaluations, and user interactions will be with syntax-rules macro capability. To use a specific syntax-rules macro implementation from [SLIB] (instead of [SLIB]'s default) put -r macropackage before -m on the command line.

— Command Option: -u

specifies that subsequent loads, evaluations, and user interactions will be without syntax-rules macro capability. Syntax-rules macro capability can be restored by a subsequent -m on the command line or from Scheme code.

— Command Option: -i

specifies that scm should run interactively. That means that scm will not terminate until the (quit) or (exit) command is given, even if there are errors. It also sets the prolixity level to 2 if it is less than 2. This will print prompts, evaluation times, and notice of loading files. The prolixity level can be set by subsequent options. If scm is started from a tty, it will assume that it should be interactive unless given a subsequent -b option.

— Command Option: -b

specifies that scm should run non-interactively. That means that scm will terminate after processing the command line or if there are errors.

— Command Option: -s

specifies, by analogy with sh, that scm should run interactively and that further options are to be treated as program aguments.

— Command Option: -
— Command Option:

specifies that further options are to be treated as program aguments.