Hi Lutz,
I was under the impression that {} and [text][/text] also worked
on the commandline with option -e
... Was this removed in a newlisp version somewhere...?
Regards, Norman
{} and [text][/text] ?
{} and [text][/text] ?
-- (define? (Cornflakes))
I want to start newlisp with a commandline option, and then NOT exit afterwards... Thats not possible with -e
The problem is that init.lsp is global.. Im not using init.lsp because it impacts all my executions.. so starting newlisp with an -e was the option, but its exiting directly...
Any solution to workaround this without the use of init.lsp ?
regards, Norman
The problem is that init.lsp is global.. Im not using init.lsp because it impacts all my executions.. so starting newlisp with an -e was the option, but its exiting directly...
Any solution to workaround this without the use of init.lsp ?
regards, Norman
-- (define? (Cornflakes))
exiting after execution of the expression after the -e option is the whole point of the -e option ;).
But there is a workaround to your problem by modiffying init.lsp:
now init.lsp will do its stuff only if there is no -e on the command line. When -e was specified then init.lsp will have no effect. But -e will always exit.
Lutz
But there is a workaround to your problem by modiffying init.lsp:
Code: Select all
(if (!= (main-args 2) "-e")
(begin
...
; do all the normal init.lsp stuff
...
))
Lutz