make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for missing shell commands in rc2


From: J. David Bryan
Subject: Patch for missing shell commands in rc2
Date: Mon, 20 Mar 2006 21:04:01 -0500

Make is missing a number of cmd.exe shell commands that are present in 
NT/2000/XP.  The patch below adds them.  It also removes a duplicate entry 
for the "if" command.  This patch is against 3.81rc2.

                                          -- Dave


diff -u -r original/ChangeLog patched/ChangeLog
--- original/ChangeLog  2006-03-19 21:36:37.000000000 -0500
+++ patched/ChangeLog   2006-03-20 17:26:49.000000000 -0500
@@ -1,3 +1,8 @@
+2006-03-20  J. David Bryan <address@hidden>
+
+       * job.c (construct_command_argv_internal) [WINDOWS32]: Add WinXP
+       cmd.exe internal commands to sh_cmds_dos.
+
 2006-03-19  Paul D. Smith  <address@hidden>
 
        * remake.c (update_file): Add alloca(0) to clean up alloca'd
diff -u -r original/job.c patched/job.c
--- original/job.c      2006-03-19 22:03:04.000000000 -0500
+++ patched/job.c       2006-03-20 17:50:10.000000000 -0500
@@ -2279,12 +2279,14 @@
                             0 };
 #elif defined (WINDOWS32)
   static char sh_chars_dos[] = "\"|&<>";
-  static char *sh_cmds_dos[] = { "break", "call", "cd", "chcp", "chdir", "cls",
-                            "copy", "ctty", "date", "del", "dir", "echo",
-                            "erase", "exit", "for", "goto", "if", "if", "md",
-                            "mkdir", "path", "pause", "prompt", "rd", "rem",
-                             "ren", "rename", "rmdir", "set", "shift", "time",
-                             "type", "ver", "verify", "vol", ":", 0 };
+  static char *sh_cmds_dos[] = { "assoc", "break", "call", "cd", "chcp",
+                            "chdir", "cls", "color", "copy", "ctty", "date",
+                            "del", "dir", "echo", "endlocal", "erase", "exit",
+                            "for", "ftype", "goto", "if", "md", "mkdir",
+                            "move", "path", "pause", "popd", "prompt", "pushd",
+                            "rd", "rem", "ren", "rename", "rmdir", "set",
+                            "setlocal", "shift", "start", "time", "title",
+                            "type", "ver", "verify", "vol", ":", 0 };
   static char sh_chars_sh[] = "#;\"*?[]&|<>(){}$`^";
   static char *sh_cmds_sh[] = { "cd", "eval", "exec", "exit", "login",
                             "logout", "set", "umask", "wait", "while", "for",





reply via email to

[Prev in Thread] Current Thread [Next in Thread]