diff options
author | Reimer Behrends <behrends@gmail.com> | 2014-06-22 02:05:17 +0200 |
---|---|---|
committer | Reimer Behrends <behrends@gmail.com> | 2014-06-22 02:23:31 +0200 |
commit | 672e72487be702b15856ef51dda7f107f66cb462 (patch) | |
tree | fcaf84b954641d8a382def485ddd001559fbc142 | |
parent | be534279da5021aa5e6621430a52ee1573f1a01f (diff) | |
download | Nim-672e72487be702b15856ef51dda7f107f66cb462.tar.gz |
Fixed gorge/staticExec to not strip newlines.
-rw-r--r-- | compiler/vmdeps.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index 0e01f5031..9a213d813 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) |