Hardcodes nix-shell instead of /usr/bin/env nix-shell...
				
					
				
			... in the ruby shebang test.
This commit is contained in:
		
							parent
							
								
									9478f88681
								
							
						
					
					
						commit
						a4c9b2595e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -43,7 +43,7 @@ output=$($TEST_ROOT/shell.shebang.sh abc def) | ||||||
| # Test nix-shell shebang mode for ruby | # Test nix-shell shebang mode for ruby | ||||||
| # This uses a fake interpreter that returns the arguments passed | # This uses a fake interpreter that returns the arguments passed | ||||||
| # This, in turn, verifies the `rc` script is valid and the `load()` script (given using `-e`) is as expected. | # This, in turn, verifies the `rc` script is valid and the `load()` script (given using `-e`) is as expected. | ||||||
| sed -e "s|@ENV_PROG@|$(type -p env)|" shell.shebang.rb > $TEST_ROOT/shell.shebang.rb | sed -e "s|@SHELL_PROG@|$(type -p nix-shell)|" shell.shebang.rb > $TEST_ROOT/shell.shebang.rb | ||||||
| chmod a+rx $TEST_ROOT/shell.shebang.rb | chmod a+rx $TEST_ROOT/shell.shebang.rb | ||||||
| 
 | 
 | ||||||
| output=$($TEST_ROOT/shell.shebang.rb abc ruby) | output=$($TEST_ROOT/shell.shebang.rb abc ruby) | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| #! @ENV_PROG@ nix-shell | #! @SHELL_PROG@ | ||||||
| #! ruby | #! ruby | ||||||
| #! nix-shell -I nixpkgs=shell.nix --no-substitute | #! nix-shell -I nixpkgs=shell.nix --no-substitute | ||||||
| #! nix-shell --pure -p ruby -i ruby | #! nix-shell --pure -p ruby -i ruby | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue