mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
nix-shell: Fix 'nix-shell -i'
The 'args' variable here is shadowing one in the outer scope and its contents end up unused. This causes any '#! nix-shell' lines to effectively be ignored. The intention here was to clear the args vector, as far as I can tell (and it seems to work).
This commit is contained in:
parent
b6b142b4b1
commit
c698ec1f22
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ int main(int argc, char ** argv)
|
|||
inShebang = true;
|
||||
for (int i = 2; i < argc - 1; ++i)
|
||||
savedArgs.push_back(argv[i]);
|
||||
std::vector<string> args;
|
||||
args.clear();
|
||||
for (auto line : lines) {
|
||||
line = chomp(line);
|
||||
std::smatch match;
|
||||
|
|
Loading…
Reference in a new issue