summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/os.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 96833056a..a218121ed 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -1298,7 +1298,7 @@ proc execShellCmd*(command: string): int {.rtl, extern: "nos$1",
   ## shell involved, use the `execProcess` proc of the `osproc`
   ## module.
   when defined(posix):
-    result = c_system(command) shr 8
+    result = WEXITSTATUS(c_system(command))
   else:
     result = c_system(command)