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

stack --nix exec -- bash fails #1538

mboes opened this issue Dec 18, 2015 · 3 comments

stack --nix exec -- bash fails #1538

mboes opened this issue Dec 18, 2015 · 3 comments


Copy link

@mboes mboes commented Dec 18, 2015

The following works:

$ stack new foo
$ cd foo
$ stack exec bash

However, the following does not:

$ stack exec -- bash
/nix/store/gb2dwphbdjk56h0lbbyma32rlid022ad-bash-4.3-p42/bin/bash: --extra-lib-dirs=/nix/store/gf16fp2wxbfq0c6r7j6386gkk4r3aqdr-apache-maven-3.3.3/lib : option non valable

The problem seems to be that if you use -- to delimit arguments passed to the subcommand, Stack for some reason passes extra arguments to the subcommand, which it of course fails to recognize. Without -- this seems to work fine.

Copy link

@luigy luigy commented Dec 18, 2015

This is similar to #1536

Copy link

@peti peti commented Dec 18, 2015

Is there going to be a bug-fix release for this soon? Unfortunately, the exec command is pretty much useless for most purposes with that bug present because one cannot pass any options to the executed program.

Copy link

@borsboom borsboom commented Dec 19, 2015

You can use stack upgrade --git to upgrade to the latest master version now. We're planning on a new release next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

5 participants
You can’t perform that action at this time.