nix-shell: Fix file name resolution in shebangs
This commit is contained in:
		
							parent
							
								
									ef1d0142a0
								
							
						
					
					
						commit
						c7af84ce84
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -278,7 +278,7 @@ void mainWrapped(int argc, char * * argv) | ||||||
|                 /* If we're in a #! script, interpret filenames
 |                 /* If we're in a #! script, interpret filenames
 | ||||||
|                    relative to the script. */ |                    relative to the script. */ | ||||||
|                 exprs.push_back(state.parseExprFromFile(resolveExprPath(lookupFileArg(state, |                 exprs.push_back(state.parseExprFromFile(resolveExprPath(lookupFileArg(state, | ||||||
|                     inShebang && !packages ? absPath(i, dirOf(script)) : i)))); |                     inShebang && !packages ? absPath(i, absPath(dirOf(script))) : i)))); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|     /* Evaluate them into derivations. */ |     /* Evaluate them into derivations. */ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue