{} and [text][/text] ?

Started by newdep, February 12, 2007, 08:09:10 AM

Previous topic - Next topic

newdep

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
-- (define? (Cornflakes))

newdep

#1
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
-- (define? (Cornflakes))

Lutz

#2
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:


(if (!= (main-args 2) "-e")
   (begin
       ...
       ; do all the normal init.lsp stuff
       ...
))


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

newdep

#3
The problem is I never use init.lsp ..but that no problem at all... ;-) Its newlisp...



Its soooooo simple its just to damm stupid to mention !



I fixed it already ..Im not going to tell how because thats not

good for my image ;-)
-- (define? (Cornflakes))