summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-11-28 11:14:43 +0100
committerAraq <rumpf_a@web.de>2017-11-28 11:14:43 +0100
commit942694d91474a0738460d4cf4c22d4fdfb53a87e (patch)
treede3dc827fe6e36503f9b51834a76d62e5c62d823
parent8c634cdb2b12c9dff15ac31820df7ecf0c6c3497 (diff)
downloadNim-942694d91474a0738460d4cf4c22d4fdfb53a87e.tar.gz
fixes the new ':test:' feature
-rw-r--r--compiler/docgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 9a32636c2..0861c25b2 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -800,7 +800,7 @@ proc commandRstAux(filename, outExt: string) =
       # Nim's convention: every path is relative to the file it was written in:
       outp = splitFile(d.filename).dir / filename
     writeFile(outp, content)
-    let cmd = cmd % outp
+    let cmd = unescape(cmd) % quoteShell(outp)
     rawMessage(hintExecuting, cmd)
     if execShellCmd(cmd) != status:
       rawMessage(errExecutionOfProgramFailed, cmd)