setting (main-args)
Posted: Sat Aug 12, 2006 7:17 pm
Hi Lutz,
(main-args) is used as a copy from argv in the newlisp.c code..
I would like to manipulate the (main-args) during newlisp startup.
But this is not that easy ;-)
If you take i.e. my new option called "-o" and use it like this ->
newlisp -o "(chop (main-args))" it will nicely print the chopped args
but if I then type (main-args) it gives me still the main argv values.
Do you have any idea how to manipulate the (main-args) during startup?
Yes that sounds strange, but emagine newlisp.exe being executed from another
shell or program that always sends its own args too.. then newlisp does not have
its own args but also the ones from the shell or program that executed it...
Regards, Norman
(main-args) is used as a copy from argv in the newlisp.c code..
I would like to manipulate the (main-args) during newlisp startup.
But this is not that easy ;-)
If you take i.e. my new option called "-o" and use it like this ->
newlisp -o "(chop (main-args))" it will nicely print the chopped args
but if I then type (main-args) it gives me still the main argv values.
Do you have any idea how to manipulate the (main-args) during startup?
Yes that sounds strange, but emagine newlisp.exe being executed from another
shell or program that always sends its own args too.. then newlisp does not have
its own args but also the ones from the shell or program that executed it...
Regards, Norman