Skip to content
Snippets Groups Projects
Commit bf674492 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Grubba's fix fixed...

Rev: lib/modules/Process.pmod:1.3
parent 07a0653a
Branches
Tags
No related merge requests found
......@@ -10,9 +10,9 @@ varargs int exec(string file,string ... foo)
if(search(file,"/"))
return exece(combine_path(getcwd(),file),foo,getenv());
path=getenv("PATH")||({});
path=getenv("PATH");
foreach(path/":",path)
foreach((path?(path/":"):({})),path)
if(file_stat(path=combine_path(path,file)))
return exece(path, foo,getenv());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment