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

stdenv: mute errors when failing to write env-vars #108518

Merged
merged 1 commit into from Jan 31, 2021

Conversation

4z3
Copy link
Contributor

@4z3 4z3 commented Jan 5, 2021

The intention of this change is to mute error messages caused when multiple users use nix-shell, but only the first one succeeds to dump their environment variables. All others face a permission denied error like this:

$ nix-shell -p coreutils
bash: /tmp/env-vars: Permission denied

[nix-shell:~]$ 

This might not be the most sensible way to resolve this issue, but the fix was inspired by the irrelevance of the dumping's success, i.e. || true... ;)

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

Successfully merging this pull request may close these issues.

None yet

2 participants