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

Cannot change existing environment variable #731

Open
mischajonker opened this issue Jan 21, 2025 · 0 comments
Open

Cannot change existing environment variable #731

mischajonker opened this issue Jan 21, 2025 · 0 comments

Comments

@mischajonker
Copy link

Once an environment variable already exists, we cannot override it anymore.

.env file:

TEST=foo

Script executed in runme.dev:

export TEST=bar
echo ${TEST}
export TEST_2=foo
export TEST_2=bar
echo ${TEST_2}

Expected result:

bar
bar

Actual result:

foo
bar

A similar situation happens when sourcing another script that sets environment variables. These environment variables can also not be overridden.

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