Comment 7 for bug 256191

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote : Re: [Bug 256191] Re: scheme-script does not pass through the command line uninterpreted

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 think the better option is to have all C arguments (which are
only "-b bootfile" now) to come before the Scheme arguments (e.g.,
--r6rs-script, --script, etc.,) and all Scheme arguments to come
before the user's program arguments.

I haven't given much thought to these arguments up to this point.
It might need a little more thought.