Branch: Tag:

2011-09-12

2011-09-12 09:39:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Process: spawn(), popen() and system() et al now use Process.Process.

809: Inside #if defined(__NT__)
   if (sizeof(command) <= 1 ||    command[0] != '\"' || command[sizeof(command)-1] != '\"')    command = "\"" + command + "\""; -  return create_process(({ "cmd", "/c", command }),data); +  return Process(({ "cmd", "/c", command }),data);   #elif defined(__amigaos__) -  return create_process(split_quoted_string(command),data); +  return Process(split_quoted_string(command),data);   #else /* !__NT__||__amigaos__ */ -  return create_process(({ "/bin/sh", "-c", command }),data); +  return Process(({ "/bin/sh", "-c", command }),data);   #endif /* __NT__||__amigaos__ */ -  +    }      //! @decl string popen(string command)