This commit is contained in:
Matthew Kenigsberg 2020-04-27 13:18:26 -06:00
parent a3bc695e7d
commit 9e95b95a5d

View file

@ -278,6 +278,7 @@ struct CmdDevShell : Common, MixEnvironment
auto shell = getEnv("SHELL").value_or("bash");
setEnviron();
// prevent garbage collection until shell exits
setenv("GCROOT", gcroot.data(), 1);
auto args = Strings{std::string(baseNameOf(shell)), "--rcfile", rcFilePath};