From cbeb4fcd69cfdfecbcb60e033129fde94c7ba1d4 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 7 Apr 2026 11:02:53 +0200 Subject: [PATCH] repl: Fix the `use` command The culprit was a space added at the wrong place, which messed with c++ raw strings. Fixes #1178 Change-Id: Ic1e09cb7215d9a6dd2d13fd92242649b0e1fcd13 --- lix/libcmd/repl.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lix/libcmd/repl.cc b/lix/libcmd/repl.cc index 06a4c2746..f95bc7595 100644 --- a/lix/libcmd/repl.cc +++ b/lix/libcmd/repl.cc @@ -952,8 +952,7 @@ void NixRepl::initBuiltinCommands() [](NixRepl & repl, const std::string & arg) { Value v = repl.evalString(arg); Value f = repl.evalString( - R""("drv: (import {}).runCommand "shell") "" - R""({ buildInputs = [ drv ]; } "")"" + R"(drv: (import {}).runCommand "shell" { buildInputs = [ drv ]; } "")" ); Value result = repl.state.callFunction(f, v, PosIdx());