pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:3:   import Stdio;      static private inherit File : file;      varargs int exec(string file,string ... foo)   {    string path;    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());       return 69;   }      varargs int spawn(string s,object stdin,object stdout,object stderr)   {    object p;    int pid;