From 672e72487be702b15856ef51dda7f107f66cb462 Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Sun, 22 Jun 2014 02:05:17 +0200 Subject: [PATCH] Fixed gorge/staticExec to not strip newlines. --- compiler/vmdeps.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index 0e01f50313..9a213d8133 100644 --- a/compiler/vmdeps.nim +++ b/compiler/vmdeps.nim @@ -15,6 +15,8 @@ proc readOutput(p: PProcess): string = discard p.waitForExit while not output.atEnd: result.add(output.readLine) + result.add("\n") + result.setLen(result.len - "\n".len) proc opGorge*(cmd, input: string): string = var p = startCmd(cmd)