mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
comment
This commit is contained in:
parent
a3bc695e7d
commit
9e95b95a5d
1 changed files with 1 additions and 0 deletions
|
@ -278,6 +278,7 @@ struct CmdDevShell : Common, MixEnvironment
|
||||||
auto shell = getEnv("SHELL").value_or("bash");
|
auto shell = getEnv("SHELL").value_or("bash");
|
||||||
|
|
||||||
setEnviron();
|
setEnviron();
|
||||||
|
// prevent garbage collection until shell exits
|
||||||
setenv("GCROOT", gcroot.data(), 1);
|
setenv("GCROOT", gcroot.data(), 1);
|
||||||
|
|
||||||
auto args = Strings{std::string(baseNameOf(shell)), "--rcfile", rcFilePath};
|
auto args = Strings{std::string(baseNameOf(shell)), "--rcfile", rcFilePath};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue