Merge pull request #1295 from rbehrends/fix-staticexec

Fixed gorge/staticExec to not strip newlines.
This commit is contained in:
Andreas Rumpf
2014-06-22 02:25:46 +02:00

View File

@@ -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)