pike.git / NT / tools / lib.pike

version» Context lines:

pike.git/NT/tools/lib.pike:5: Inside #if defined(__NT__)
  #ifdef __NT__   void exece(string cmd, array(string) args)   {    exit(Process.create_process( ({ cmd }) + args )->wait());   }   #endif      string fixpath(string s)   {    string mnt=getenv("NTMOUNT"); +  array st; +  +  while ((st = file_stat(s, 1)) && (st[1] == -3)) { +  string new_s = readlink(s); +  if (new_s == s) { +  werror(sprintf("%O is a symlink to itself!\n", s)); +  exit(1); +  } +  s = new_s; +  }    if(mnt && strlen(mnt)) s=replace(s,mnt,"");    return replace(s,"/","\\");   }         string fixabspath(string s)   {    return replace(s,"/","\\");   }   
pike.git/NT/tools/lib.pike:359:    case 0:    case "sprsh":    case "SPRSH":    return popen_cmd( ({"getenv",var}) );    }   }         int do_cmd(string *cmd, mixed|void filter)   { -  werror("DOING "+cmd*" "+"\n"); +     return silent_do_cmd(cmd,filter);   }      string find_lib_location()   {    return __FILE__;   }      string find_next_in_path(string argv0,string cmd)   {