]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
* script.cc (init_run_script): Revert to initializing cmd based on OS type.
authorChristopher Faylor <me@cgf.cx>
Mon, 22 Jun 2009 21:07:37 +0000 (21:07 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 22 Jun 2009 21:07:37 +0000 (21:07 +0000)
ChangeLog
script.cc

index 842fb4d47b03bcffa35e35453fc0ecdd7c878e6e..2cadcb1b35d8f04943f145516b3d3d8460015715 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-22  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * script.cc (init_run_script): Revert to initializing cmd based on OS
+       type.
+
 2009-06-22  Corinna Vinschen  <corinna@vinschen.de>
 
        * script.cc (Script::run): Start bash without -c option.
index 04cfd2b39eff7982775e7e6ea7cb5a9d026bbd90..bda46001aa15466c31a25d652920d101d1e540f0 100644 (file)
--- a/script.cc
+++ b/script.cc
@@ -41,7 +41,7 @@ static const char *cvsid =
 #endif
 
 static std::string sh;
-static const char *cmd = "cmd.exe";
+static const char *cmd;
 
 static void
 sanitize_PATH ()
@@ -110,7 +110,7 @@ init_run_script ()
   SetEnvironmentVariable ("TERM", "dumb");
   SetEnvironmentVariable ("TMP", "/tmp");
 
-  sh = backslash (cygpath ("/bin/bash.exe"));
+  cmd = IsWindowsNT () ? "cmd.exe" : "command.com";
 }
 
 class OutputLog
This page took 0.043166 seconds and 5 git commands to generate.