Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nix-shell: don't check for "nix-shell" in shebang script name #3269
Fix bug: if the path to the nix-shell shebang script contains
$ cat a-script-that-should-be-run-in-nix-shell.sh #! /usr/bin/env nix-shell #! nix-shell -p hello -i sh hello $ ./a-script-that-should-be-run-in-nix-shell.sh error: undefined variable 'hello' at /tmp/a-script-that-should-be-run-in-nix-shell.sh:3:1 $ mv a-script-that-should-be-run-in-nix-shell.sh a-script.sh $ ./a-script.sh Hello, world!
Probably this check was relevant when nix-build was a perl script (as perl handles