Branch: Tag:

1997-06-09

1997-06-09 20:56:33 by John W. Pierce <jwp@r2systems.com>

Changed semantics of exec() as requested by John W Pierce <jwp@checfs1.ucsd.edu>.

Rev: lib/modules/Process.pmod:1.9

6:      varargs int exec(string file,string ... foo)   { +  if (sizeof(file)) {    string path; -  if(search(file,"/")) +  +  if(search(file,"/") >= 0)    return exece(combine_path(getcwd(),file),foo,getenv());    -  path=getenv("PATH"); +  path=getenv("PATH")||({});    -  foreach((path?(path/":"):({})),path) +  foreach(path, path)    if(file_stat(path=combine_path(path,file)))    return exece(path, foo,getenv()); -  +  }    return 69;   }