bugfix: 'system' on windows is sane

This commit is contained in:
Araq
2014-02-14 15:46:30 +01:00
parent e210b049e9
commit 09c8a51348

View File

@@ -1037,7 +1037,10 @@ 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.
result = c_system(command) shr 8
when defined(windows):
result = c_system(command)
else:
result = c_system(command) shr 8
# Environment handling cannot be put into RTL, because the ``envPairs``
# iterator depends on ``environment``.