Looks like a bug.
nim-#devel/lib/pure/osproc.nim:1123, It works properly after being modified to the following. code var error: cint let sizeRead = read(data.pErrorPipe[readIdx], addr error, sizeof(error)) if sizeRead == sizeof(error): raiseOSError(OSErrorCode(error), # <------------- this line "Could not find command: '" & $data.sysCommand & "'. OS error: " & $strerror(error)) return pid Run