pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:5:   static private inherit File : file;      varargs int exec(string file,string ... foo)   {    if (sizeof(file)) {    string path;       if(search(file,"/") >= 0)    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());    }    return 69;   }      varargs int spawn(string s,object stdin,object stdout,object stderr)   {    int pid;