From 5691fc5f600d8cba7e248714dd6010a247b7fa80 Mon Sep 17 00:00:00 2001 From: n5m <72841454+n5m@users.noreply.github.com> Date: Sat, 6 Feb 2021 23:31:58 +0000 Subject: [PATCH] quote nim command on compile (#16954) --- compiler/docgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index ff9e8b8f4c64f..6d105f722f79d 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -474,7 +474,7 @@ proc runAllExamples(d: PDoc) = # most useful semantics is that `docCmd` comes after `rdoccmd`, so that we can (temporarily) override # via command line let cmd = "$nim $backend -r --lib:$libpath --warning:UnusedImport:off --path:$path --nimcache:$nimcache $rdoccmd $docCmd $file" % [ - "nim", os.getAppFilename(), + "nim", quoteShell(os.getAppFilename()), "backend", $d.conf.backend, "path", quoteShell(d.conf.projectPath), "libpath", quoteShell(d.conf.libpath),