diff options
author | Araq <rumpf_a@web.de> | 2014-02-02 01:22:31 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-02 01:22:31 +0100 |
commit | 38db9371935f482fb5205124030a3ec25c8ff2d5 (patch) | |
tree | 32aaecfc90c0c6fef1d2903cfde73eff89db0e7a /lib | |
parent | 200102580b77437857927e13fc40fdafe1642e8c (diff) | |
download | Nim-38db9371935f482fb5205124030a3ec25c8ff2d5.tar.gz |
merged #811 against devel
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/os.nim | 2 | ||||
-rw-r--r-- | 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 1f42d0d58..8cb3919a7 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 676707abb..0714da28e 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) |