fix embarrassing bugs in (ice-9 command-line)
authorAndy Wingo <wingo@pobox.com>
Thu, 14 Apr 2011 14:46:49 +0000 (16:46 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 14 Apr 2011 14:46:49 +0000 (16:46 +0200)
* module/ice-9/command-line.scm (compile-shell-switches): Whoops, fix a
  few cases that forgot to loop back to the beginning.

module/ice-9/command-line.scm

index 9fa7135..9797364 100644 (file)
@@ -292,13 +292,16 @@ If FILE begins with `-' the -s switch is mandatory.
            ;; Do auto-compile on/off now, because the form itself might
            ;; need this decision.
            ((string=? arg "--auto-compile")
-            (set! %load-should-auto-compile #t))
+            (set! %load-should-auto-compile #t)
+            (parse args out))
 
            ((string=? arg "--no-auto-compile")
-            (set! %load-should-auto-compile #f))
+            (set! %load-should-auto-compile #f)
+            (parse args out))
 
            ((string=? arg "-q")         ; don't load user init
-            (set! inhibit-user-init? #t))
+            (set! inhibit-user-init? #t)
+            (parse args out))
 
            ((string-prefix? "--use-srfi=" arg)
             (let ((srfis (map (lambda (x)