From 6a101c5004c64b229a99e437af1640342aa98709 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 1 Dec 2017 02:31:47 +0100 Subject: os.nim bugfix: system() returns bullshit on Posix-like systems in general --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit 1.4.1-2-gfad0