Re: How to run from command line?

Jean Louis <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
That is good and insightful.

On Fri, Dec 30, 2016 at 01:13:47PM +0100, Pascal Bourguignon wrote:
> 
> If you want to handle the errors, then handle them yourself:
> 
>  (ext::saveinitmem
>    program-name
>    :executable t
>    :norc t
>    :quiet t
>    :verbose t
>    :script t
>    :documentation program-documentation-string
>    :start-package (find-package "COMMON-LISP-USER")
>    ;; :locked-packages
>    ;; :keep-global-handlers
>    :init-function (lambda ()
>                     (handler-case
>                         (progn
>                           (load program-init-file :if-does-not-exist nil)
>                           (funcall program-main-function  ext:*args*))
>                       (error (err)
>                         (finish-output *standard-output*)
>                         (finish-output *trace-output*)
>                         (format *error-output* "~%~A~%" err)
>                         (finish-output *error-output*)
>                         (ext:exit 1)))
>                     (finish-output *standard-output*)
>                     (finish-output *trace-output*)
>                     (ext:exit 0)))

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.