Page 1 of 1

{} and [text][/text] ?

Posted: Mon Feb 12, 2007 4:09 pm
by 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

Posted: Mon Feb 12, 2007 4:14 pm
by newdep
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

Posted: Mon Feb 12, 2007 6:11 pm
by Lutz
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:

Code: Select all

(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

Posted: Mon Feb 12, 2007 7:51 pm
by newdep
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 ;-)