diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-12-01 02:31:47 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-12-01 02:31:47 +0100 |
commit | 6a101c5004c64b229a99e437af1640342aa98709 (patch) | |
tree | 289c8593cbc141fb0b5fc950c7b3f63d5ef9f1e3 /lib | |
parent | 8b1084bce904a615577c915dcec03dc3e426333b (diff) | |
download | Nim-6a101c5004c64b229a99e437af1640342aa98709.tar.gz |
os.nim bugfix: system() returns bullshit on Posix-like systems in general
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 8b26552de..a59134007 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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) |