Comment 8 for bug 256191

Revision history for this message
Derick Eddington (derick-eddington) wrote : Re: [Bug 256191] Re: scheme-script does not pass through the command line uninterpreted

On Sun, 2008-08-10 at 10:27 -0700, Abdulaziz Ghuloum wrote:
> On Aug 9, 2008, at 5:23 PM, Derick Eddington wrote:
>
> > - else if(strcmp("--", argv[i]) == 0){
> > + else if(strcmp("--", argv[i]) == 0
> > + || strcmp("--r6rs-script", argv[i]) == 0
> > + || strcmp("--script", argv[i]) == 0){
> > return 0;
>
> I don't like this since it requires changing the C command line
> parser every time I change ikarus's arguments (e.g., you already
> forgot -O0, -O1, -O2).

I was only attempting to protect the user program's arguments and for
that the -ON currently don't matter, but I understand what you mean
about design-for-the-future and maintenance.

I did forget --compile-dependencies, which in ikarus.main.ss uses the
arguments after its script name.

> I think the better option is to have all C arguments (which are
> only "-b bootfile" now)

and -h

> and all Scheme arguments to come
> before the user's program arguments.

ikarus.main.ss already does that.

I agree a less-maintenance-required solution would be nicer, but how
could it be done?