[Maxima] [Patch] Command line arguments retrieval
toy.raymond at gmail.com
Sun May 16 19:28:50 CDT 2010
On 5/14/10 1:41 AM, Stas Boukarev wrote:
> Stas Boukarev <stassats at gmail.com> writes:
>> Implementation dependent command line arguments retrieval differs
>> between implementations. For some they're processed directly, and for
>> some only after "--" argument. I attached a patch which unifies this
>> behavior by processing all arguments, the way it does on SBCL and Clisp,
>> which, I presume, is the desired behavior. And I also added support for
> Turns out, I'm running maxima directly from an image saved by Lisp, but
Don't know if we actually support running maxima directly.
> a shell script "maxima" passes -- to distinguish between implementation
> options and maxima options. I attached a new patch, which discards
> everything before "--", but doesn't remove all arguments when there is
> no "--", like it did originally.
I tested this patch. Seems to work just fine for the Lisps I tested
this on (ecl, ccl, gcl). There's a minor issue with cmucl where if you
try to run cmucl without using the maxima script, it behaves badly.
But it's ok if you append "--" to the command line. I never run maxima
and cmucl this way, though; I always use the maxima script.
I'll check this in soon, if there are no objections.
More information about the Maxima