diff options
author | Ben Burdette <bburdette@gmail.com> | 2021-12-27 14:06:04 -0700 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2021-12-27 14:06:04 -0700 |
commit | ff82ba98b41eb3e4b1ce96ed02504acea03eb29c (patch) | |
tree | 334f3c0bb4185054ed9f10775ae0a75f835a8076 /src/libcmd/repl.cc | |
parent | d0d589044512a77b345b7e576e2c45910c74eb02 (diff) |
don't add builtins to extras, initEnv() in regular repl
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r-- | src/libcmd/repl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 6859e5c07..b14f43ec4 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -901,8 +901,8 @@ void runRepl( repl->initEnv(); + // add 'extra' vars. std::set<std::string> names; - for (auto & [name, value] : extraEnv) { // names.insert(ANSI_BOLD + name + ANSI_NORMAL); names.insert(name); @@ -951,6 +951,7 @@ struct CmdRepl : StoreCommand, MixEvalArgs auto repl = std::make_unique<NixRepl>(evalState); repl->autoArgs = getAutoArgs(*repl->state); + repl->initEnv(); repl->mainLoop(files); } }; |