(construct_command_argv_internal) <sh_cmds_dos> [WINDOWS32]: Add "echo." and

a few more commands that are built into cmd.exe.  Fixes Savannah bug #28126.
This commit is contained in:
Eli Zaretskii 2009-12-11 15:54:19 +00:00
parent b4cec7790f
commit 866aa6267a

15
job.c
View file

@ -2301,12 +2301,15 @@ construct_command_argv_internal (char *line, char **restp, char *shell,
0 }; 0 };
#elif defined (WINDOWS32) #elif defined (WINDOWS32)
static char sh_chars_dos[] = "\"|&<>"; static char sh_chars_dos[] = "\"|&<>";
static char *sh_cmds_dos[] = { "break", "call", "cd", "chcp", "chdir", "cls", static char *sh_cmds_dos[] = { "assoc", "break", "call", "cd", "chcp",
"copy", "ctty", "date", "del", "dir", "echo", "chdir", "cls", "color", "copy", "ctty",
"erase", "exit", "for", "goto", "if", "if", "md", "date", "del", "dir", "echo", "echo.",
"mkdir", "path", "pause", "prompt", "rd", "rem", "endlocal", "erase", "exit", "for", "ftype",
"ren", "rename", "rmdir", "set", "shift", "time", "goto", "if", "if", "md", "mkdir", "path",
"type", "ver", "verify", "vol", ":", 0 }; "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_chars_sh[] = "#;\"*?[]&|<>(){}$`^";
static char *sh_cmds_sh[] = { "cd", "eval", "exec", "exit", "login", static char *sh_cmds_sh[] = { "cd", "eval", "exec", "exit", "login",
"logout", "set", "umask", "wait", "while", "for", "logout", "set", "umask", "wait", "while", "for",