pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:636:    array(string) e=(getenv("PATH")||"")/":"-({""});   #endif       multiset(string) filter=(<>);    search_path_entries=({});    foreach (e,string s)    {    string t;    if (s[0]=='~') // some shells allow ~-expansion in PATH    { -  if (s[0..1]=="~/" && (t=[string]getenv("HOME"))) +  if (s[0..1]=="~/" && (t=[string]System.get_home()))    s=t+s[1..];    else    {    // expand user?    }    }    if (!filter[s] /* && directory exist */ )    {    search_path_entries+=({s});    filter[s]=1;