[bug #28126] bug with Windows interface: echo. in command only works when redirected

2009-12-11 Thread anonymous

Follow-up Comment #2, bug #28126 (project make):

[Submitted by J. David Bryan, jdbryan at acm dot org]

Would you consider adding the "move," "popd," "pushd," and "start" built-in
commands as well?


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


[bug #28126] bug with Windows interface: echo. in command only works when redirected

2009-12-11 Thread Eli Zaretskii

Update of bug #28126 (project make):

  Status:None => Fixed  
 Open/Closed:Open => Closed 
   Fixed Release:None => CVS

___

Follow-up Comment #1:

Fixed with the attached patch (which adds a couple more builtin commands).


(file #19239)
___

Additional Item Attachment:

File name: w32builtins.difSize:1 KB


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


Re: bug with Windows interface: echo. in command only works when redirected

2009-12-11 Thread Eli Zaretskii
> From: "Mark Galeck (CW)" 
> Date: Sun, 29 Nov 2009 20:31:51 -0800
> Accept-Language: en-US
> acceptlanguage: en-US
> 
> Hello,  I asked for help on this issue (with GNU make on Windows) on the 
> help-make list, and Paul Smith says, this is a bug.  I am using WinXP Pro, 
> SP3.  Here is an SSCCE:  
> 
> makefile:
> -
> SHELL=cmd.exe
> foobar:
>   @echo.>foo
> 
> 
> gives me:
> C:\tmp>make foobar
> 
> C:\tmp>
> 
> 
> However, this one:
> 
> makefile:
> -
> SHELL=cmd.exe
> foobar:
>   @echo.
> 
> 
> gives:
> 
> C:\tmp>make foobar
> process_begin: CreateProcess(NULL, echo., ...) failed.
> make (e=2): The system cannot find the file specified.
> make: *** [foobar] Error 2

Thanks, I just fixed this in CVS.  Patch below.

2009-12-11  Eli Zaretskii  

* job.c (construct_command_argv_internal) 
[WINDOWS32]: Add "echo." and a few more commands that are built
into cmd.exe.  Fixes Savannah bug #28126.

--- job.c~  2008-09-30 13:15:03.465375000 +0200
+++ job.c   2009-12-11 17:22:22.69825 +0200
@@ -2287,12 +2287,15 @@
 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",


___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make