bugfix: 'system' on windows is sane
This commit is contained in:
parent
e210b049e9
commit
09c8a51348
1 changed files with 4 additions and 1 deletions
|
|
@ -1037,7 +1037,10 @@ proc execShellCmd*(command: string): int {.rtl, extern: "nos$1",
|
||||||
## the process has finished. To execute a program without having a
|
## the process has finished. To execute a program without having a
|
||||||
## shell involved, use the `execProcess` proc of the `osproc`
|
## shell involved, use the `execProcess` proc of the `osproc`
|
||||||
## module.
|
## 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``
|
# Environment handling cannot be put into RTL, because the ``envPairs``
|
||||||
# iterator depends on ``environment``.
|
# iterator depends on ``environment``.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue