mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
fix -R usage
This commit is contained in:
parent
74eb616c50
commit
2962f68ced
1 changed files with 3 additions and 0 deletions
3
main.c
3
main.c
|
@ -544,6 +544,9 @@ sexp run_main (int argc, char **argv) {
|
|||
if (i < argc)
|
||||
for (j=argc-1; j>=i; j--)
|
||||
args = sexp_cons(ctx, tmp=sexp_c_string(ctx,argv[j],-1), args);
|
||||
/* if no script name, use interpreter name */
|
||||
if (i >= argc || main_symbol != NULL)
|
||||
args = sexp_cons(ctx, tmp=sexp_c_string(ctx,argv[0],-1), args);
|
||||
load_init(i < argc || main_symbol != NULL);
|
||||
sexp_set_parameter(ctx, sexp_meta_env(ctx), sym=sexp_intern(ctx, sexp_argv_symbol, -1), args);
|
||||
if (i >= argc && main_symbol == NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue