Skip to content

Conversation

@lovesegfault
Copy link
Owner

Fixes NixOS#4598

@lovesegfault lovesegfault force-pushed the fix-4598 branch 3 times, most recently from f6ef972 to 9c84c71 Compare March 3, 2021 23:57
When starting a nix-shell with `-i` it was previously possible for it to
silently fail in the scenario where the specified interpreter didn't
exist. This happened due to the `exec` call masking the issue.

With this change we enable `execfail`, which causes the script using
`nix-shell` as interpreter to correctly exit with code 127.

Fixes: NixOS#4598
@lovesegfault lovesegfault deleted the fix-4598 branch July 21, 2022 23:24
Repository owner locked as spam and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix-shell -i exits with wrong code when interpreter is invalid

2 participants