pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:18:       path=getenv("PATH");       foreach(path ? path/":" : ({}) , path)    if(file_stat(path=combine_path(path,file)))    return exece(path, foo,getenv());    }    return 69;   }    + string sh_quote(string s) + { +  return replace(s, +  ({"\\", "'", "\"", " "}), +  ({"\\\\", "\\'", "\\\"","\\ "})); + } +    string *split_quoted_string(string s)   {    s=replace(s, ({"\"","'","\\"," "}), ({"\0\"","\0'","\0\\","\0 "}));    string *x=s/"\0";    string *ret=({x[0]});       for(int e=1;e<sizeof(x);e++)    {    switch(x[e][0])    {