mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 06:22:42 +01:00
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: #4598
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| nix-build.cc | ||