os.nim bugfix: system() returns bullshit on Posix-like systems in general

This commit is contained in:
Andreas Rumpf
2017-12-01 02:31:47 +01:00
parent 8b1084bce9
commit 6a101c5004

View File

@@ -630,7 +630,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.
when defined(linux):
when defined(posix):
result = c_system(command) shr 8
else:
result = c_system(command)