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

goenv shell can't set env vars #19

Open
mark-5 opened this issue Jun 6, 2015 · 0 comments
Open

goenv shell can't set env vars #19

mark-5 opened this issue Jun 6, 2015 · 0 comments

Comments

@mark-5
Copy link

mark-5 commented Jun 6, 2015

*****:~$ goenv versions
1.4
*****:~$ goenv shell 1.4
export GOENV_VERSION="1.4"
*****:~$ goenv version
goenv: couldn't find any version specified for use
*****:~$ echo $GOENV_VERSION

*****:~$

goenv shell fires off a subshell to run export GOENV_VERSION, which doesn't affect the env vars in the parent shell process. To work around this, most other *env's use *env init to setup an alias or shell function, which evals *env shell commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant