Merge pull request #1295 from rbehrends/fix-staticexec
Fixed gorge/staticExec to not strip newlines.
This commit is contained in:
commit
989bf5f796
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ proc readOutput(p: PProcess): string =
|
||||||
discard p.waitForExit
|
discard p.waitForExit
|
||||||
while not output.atEnd:
|
while not output.atEnd:
|
||||||
result.add(output.readLine)
|
result.add(output.readLine)
|
||||||
|
result.add("\n")
|
||||||
|
result.setLen(result.len - "\n".len)
|
||||||
|
|
||||||
proc opGorge*(cmd, input: string): string =
|
proc opGorge*(cmd, input: string): string =
|
||||||
var p = startCmd(cmd)
|
var p = startCmd(cmd)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue