Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward quoted shell parameters to installed tools #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,37 @@ ghc_install() {

cat <<EOF > $local_bin/stack
#!/usr/bin/env bash
exec $stack_path/stack --stack-root "$stack_root" --local-bin-path "$local_bin" --compiler "ghc-$version" \$*
exec $stack_path/stack --stack-root "$stack_root" --local-bin-path "$local_bin" --compiler "ghc-$version" "\$@"
EOF

cat <<EOF > $local_bin/ghc
#!/usr/bin/env bash
exec $local_bin/stack exec ghc -- \$*
exec $local_bin/stack exec ghc -- "\$@"
EOF

cat <<EOF > $local_bin/ghci
#!/usr/bin/env bash
exec $local_bin/stack exec ghci -- \$*
exec $local_bin/stack exec ghci -- "\$@"
EOF

cat <<EOF > $local_bin/ghc-pkg
#!/usr/bin/env bash
exec $local_bin/stack exec ghc-pkg -- \$*
exec $local_bin/stack exec ghc-pkg -- "\$@"
EOF

cat <<EOF > $local_bin/haddock
#!/usr/bin/env bash
exec $local_bin/stack exec haddock -- \$*
exec $local_bin/stack exec haddock -- "\$@"
EOF

cat <<EOF > $local_bin/runghc
#!/usr/bin/env bash
exec $local_bin/stack exec runghc -- \$*
exec $local_bin/stack exec runghc -- "\$@"
EOF

cat <<EOF > $local_bin/runhaskell
#!/usr/bin/env bash
exec $local_bin/stack exec runhaskell -- \$*
exec $local_bin/stack exec runhaskell -- "\$@"
EOF

chmod +x $local_bin/*
Expand Down