X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fsbcl.1;h=5776d61d75994cbdb9db93751f468c457312709a;hb=ee222567ee95eaac8f6f4c877242dd116bfb8337;hp=e4f4146d150d2893a86b7c09422385c44a5dad75;hpb=f691243c787fb7a06091807a1297a130eb561b2a;p=sbcl.git diff --git a/doc/sbcl.1 b/doc/sbcl.1 index e4f4146..5776d61 100644 --- a/doc/sbcl.1 +++ b/doc/sbcl.1 @@ -269,6 +269,11 @@ startup. (This makes it easier to write Lisp programs which work cleanly in Unix pipelines. See also the "\-\-noprint" and "\-\-disable\-debugger" options.) .TP 3 +.B \-\-script +As a runtime option equivalent to \-\-noinform +\-\-end\-toplevel\-options \-\-script . See the description +of \-\-script as a toplevel option below. +.TP 3 .B \-\-help Print some basic information about SBCL, then exit. .TP 3 @@ -325,6 +330,13 @@ debugger, allowing interactive diagnosis and possible intercession. This option disables the debugger, causing errors to print a backtrace and exit with status 1 instead -- which is a mode of operation better suited for batch processing. See the user manual on \f(CRSB\-EXT:DISABLE\-DEBUGGER\fR for details. +.B \-\-script +Implies \-\-no-sysinit \-\-no-userinit \-\-disable-debugger +\-\-end\-toplevel\-options. + +Causes the system to load the specified file and exit immediately +afterwards, instead of entering the readl-eval-print loop. If the file +begins with a shebang line, it is ignored. .PP Regardless of the order in which toplevel options appear on the command @@ -341,7 +353,12 @@ Any user initialization file is loaded, unless prohibited. \-\-eval and \-\-load options are processed in the order given. .PP -Finally, the read-eval-print loop is entered. +Finally, either the read-eval-print loop is entered or the file +specified with \-\-script option is loaded. + +When running in the read-eval-print loop the system exits on end of +file. Similarly, the system exits immediately after processing the +file specified with \-\-script. Note that when running SBCL with the \-\-core option, using a core file created by a user call to the