From 38db9371935f482fb5205124030a3ec25c8ff2d5 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 2 Feb 2014 01:22:31 +0100 Subject: [PATCH] merged #811 against devel --- lib/pure/os.nim | 2 +- lib/pure/osproc.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 1f42d0d58e..8cb3919a7a 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1013,7 +1013,7 @@ proc execShellCmd*(command: string): int {.rtl, extern: "nos$1", ## the process has finished. To execute a program without having a ## shell involved, use the `execProcess` proc of the `osproc` ## module. - result = c_system(command) + result = c_system(command) shr 8 # Environment handling cannot be put into RTL, because the ``envPairs`` # iterator depends on ``environment``. diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 676707abbc..0714da28e0 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -788,7 +788,7 @@ elif not defined(useNimRtl): proc csystem(cmd: cstring): cint {.nodecl, importc: "system".} proc execCmd(command: string): int = - result = csystem(command) + result = csystem(command) shr 8 proc createFdSet(fd: var TFdSet, s: seq[PProcess], m: var int) = FD_ZERO(fd)