Commit 8240312a authored by Austin Seipp's avatar Austin Seipp

driver: Fix usage of '$0' in (#8873)

Signed-off-by: default avatarAustin Seipp <>
parent 003bcf20
......@@ -22,7 +22,7 @@ install_driver_ghci:
$(call removeFiles, "$(WRAPPER)")
echo '#!$(SHELL)' >> "$(WRAPPER)"
echo 'exec "$(bindir)/ghc-$(ProjectVersion)" --interactive $${1+"$$@"}' >> "$(WRAPPER)"
echo 'exec "$(bindir)/ghc-$(ProjectVersion)" --interactive "$$@"' >> "$(WRAPPER)"
$(call removeFiles,"$(DESTDIR)$(bindir)/ghci")
$(LN_S) ghci-$(ProjectVersion) "$(DESTDIR)$(bindir)/ghci"
......@@ -57,7 +57,7 @@ install_driver_ghcii:
$(call INSTALL_DIR,$(DESTDIR)$(bindir))
$(call removeFiles,"$(GHCII_SCRIPT)")
echo "#!$(SHELL)" >> $(GHCII_SCRIPT)
echo 'exec "$$0"/../ghc --interactive $${1+"$$@"}' >> $(GHCII_SCRIPT)
echo 'exec "$$(dirname "$$0")"/ghc --interactive "$$@"' >> $(GHCII_SCRIPT)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment