mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Adds nix-shell
test for special-cased ruby interpreter.
The test fakes the interpreter only to verify the arguments it would be given.
This commit is contained in:
parent
399f43c3d5
commit
9478f88681
3 changed files with 23 additions and 0 deletions
7
tests/shell.shebang.rb
Normal file
7
tests/shell.shebang.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
#! @ENV_PROG@ nix-shell
|
||||
#! ruby
|
||||
#! nix-shell -I nixpkgs=shell.nix --no-substitute
|
||||
#! nix-shell --pure -p ruby -i ruby
|
||||
|
||||
# Contents doesn't matter.
|
||||
abort("This shouldn't be executed.")
|
Loading…
Add table
Add a link
Reference in a new issue