Fix the ghci wrapper
authorIan Lynagh <igloo@earth.li>
Tue, 16 Jun 2009 18:25:01 +0000 (18:25 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 16 Jun 2009 18:25:01 +0000 (18:25 +0000)
The ${1+"$@"} was being evaluated by make, rather than being escaped.

driver/ghci/ghc.mk

index 4e6cc7b..88c084d 100644 (file)
@@ -20,7 +20,7 @@ install_driver_ghci:
        "$(MKDIRHIER)" $(DESTDIR)$(bindir)
        "$(RM)" $(RM_OPTS)                                 $(WRAPPER)
        echo '#!$(SHELL)'                               >> $(WRAPPER)
-       echo 'exec $(bindir)/ghc-$(ProjectVersion) --interactive ${1+"$@"}' >> $(WRAPPER)
+       echo 'exec $(bindir)/ghc-$(ProjectVersion) --interactive $${1+"$$@"}' >> $(WRAPPER)
        $(EXECUTABLE_FILE)                                 $(WRAPPER)
        "$(RM)" $(RM_OPTS) $(DESTDIR)$(bindir)/ghci
        $(LN_S) ghci-$(ProjectVersion) $(DESTDIR)$(bindir)/ghci