1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00

Merge remote-tracking branch 'matthewbauer/nix-shell-relative-shebang' into more-nix-shell

This commit is contained in:
Robert Hensing 2024-07-07 00:18:03 +02:00
commit 8838f5c746
3 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,8 @@
synopsis: ensure nix-shell shebang uses relative path
prs: #5088
description: {
`nix-shell` shebangs use the script file's relative location to resolve relative paths to files passed as command line arguments, but expression arguments were still evaluated using the current working directory as a base path.
The new behavior is that evalutations are performed relative to the script.
}