os.nim bugfix: system() returns bullshit on Posix-like systems in general
This commit is contained in:
parent
8b1084bce9
commit
6a101c5004
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue