1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/doc/manual/rl-next/shebang-relative.md

11 lines
596 B
Markdown
Raw Normal View History

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.
2024-07-06 18:18:26 -04:00
The new behavior is that evaluations are performed relative to the script.
The old behavior can be opted into by setting the option [`nix-shell-shebang-arguments-relative-to-script`](@docroot@/command-ref/conf-file.md#conf-nix-shell-shebang-arguments-relative-to-script) to `false`.
}