tester checks exitcode; osproc additions; DLL fixes; taint mode fixes

This commit is contained in:
Araq 2011-11-07 23:25:34 +01:00
commit 0b4d5e45b9
13 changed files with 210 additions and 81 deletions

View file

@ -34,7 +34,7 @@ proc openDefaultBrowser*(url: string) =
var u = quoteIfContainsWhite(url)
for a in items(attempts):
if execShellCmd(a & u) == 0: return
for b in getEnv("BROWSER").split(PathSep):
for b in getEnv("BROWSER").string.split(PathSep):
try:
# we use ``startProcess`` here because we don't want to block!
discard startProcess(command=b, args=[url], options={poUseShell})