pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:25:    return 69;   }      string sh_quote(string s)   {    return replace(s,    ({"\\", "'", "\"", " "}),    ({"\\\\", "\\'", "\\\"","\\ "}));   }    - string *split_quoted_string(string s) + array(string) split_quoted_string(string s)   {    s=replace(s, ({"\"","'","\\"," "}), ({"\0\"","\0'","\0\\","\0 "})); -  string *x=s/"\0"; -  string *ret=({x[0]}); +  array(string) x=s/"\0"; +  array(string) ret=({x[0]});       for(int e=1;e<sizeof(x);e++)    {    switch(x[e][0])    {    case '"':    ret[-1]+=x[e][1..];    while(x[++e][0]!='"') ret[-1]+=x[e];    ret[-1]+=x[e][1..];    break;
pike.git/lib/modules/Process.pmod:166: Inside #if constant(fork)
  {    object stdin;    object stdout;    object stderr;    array(object) fd;       object pid;       private object low_spawn(array(void|object(Stdio.File)) fdp,    array(void|object(Stdio.File)) fd_to_close, -  string cmd, void|string *args, +  string cmd, void|array(string) args,    void|mapping(string:string) env,    string|void cwd)    {    object(Stdio.File) pie,pied; /* interprocess communication */    object pid;       pie=Stdio.File();    pied=pie->pipe();       if(!(pid=fork()))