(construct_command_argv_internal) <sh_cmds_dos> [WINDOWS32]: Add "echo." and
authorEli Zaretskii <eliz@gnu.org>
Fri, 11 Dec 2009 15:54:19 +0000 (15:54 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 11 Dec 2009 15:54:19 +0000 (15:54 +0000)
a few more commands that are built into cmd.exe.  Fixes Savannah bug #28126.

job.c

diff --git a/job.c b/job.c
index a0e4d558d23d6d571b7919bb302a39b6d399158e..1db72174efe7db04d3ea712ca1a4de7e3b171a33 100644 (file)
--- a/job.c
+++ b/job.c
@@ -2301,12 +2301,15 @@ construct_command_argv_internal (char *line, char **restp, char *shell,
                             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", "echo.",
+                                "endlocal", "erase", "exit", "for", "ftype",
+                                "goto", "if", "if", "md", "mkdir", "path",
+                                "pause", "prompt", "rd", "rem", "ren",
+                                "rename", "rmdir", "set", "setlocal",
+                                "shift", "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",