Hi,

I don't know if this issue was raised before, but I think it would be handy to somehow know, that sbcl was run with --script command-line option.

Here's the question regarding such use case: http://stackoverflow.com/questions/9796353/writing-common-lisp-code-that-executes-from-the-command-line-but-not-inside-the

I guess, there should be no problem in adding something to features, like :--script.

diff --git i/src/code/toplevel.lisp w/src/code/toplevel.lisp
index 7384972..afc1571 100644
--- i/src/code/toplevel.lisp
+++ w/src/code/toplevel.lisp
@@ -412,6 +412,7 @@ any non-negative real number."
                           no-userinit t
                           no-sysinit t
                           script (if options (pop-option) t))
+                    (push :--script *features*)
                     (return))
                    ((string= option "--sysinit")
                     (pop-option)


What do you think?

Cheers,
Vsevolod