mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
Revert "Fixed an issue where errorCode was always 0 when startProcess did…" (#23995)
Reverts nim-lang/Nim#23992
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
discard """
|
||||
output: '''true
|
||||
true'''
|
||||
"""
|
||||
|
||||
import std/osproc
|
||||
|
||||
const command = "lsaaa -lah"
|
||||
|
||||
try:
|
||||
let process = startProcess(command, options = {poUsePath})
|
||||
discard process.waitForExit()
|
||||
except OSError as e:
|
||||
echo e.errorCode != 0
|
||||
|
||||
let process = startProcess(command, options = {poUsePath, poEvalCommand})
|
||||
let exitCode = process.waitForExit()
|
||||
echo exitCode != 0
|
||||
Reference in New Issue
Block a user