Skip to content

Commit

Permalink
quote nim command on compile (#16954)
Browse files Browse the repository at this point in the history
  • Loading branch information
n5m authored Feb 6, 2021
1 parent 065264e commit c548f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c548f97

Please sign in to comment.