On Tue, 05 Aug 2008, Szakáts Viktor wrote: Hi Viktor,
> Finally I simply copied over sed.exe from msys to mingw dir, > and this way it worked without the error. Thanks for the tip. > [ I wonder however how these tools are meant to be used properly, > if even a 'sed' cannot work consistently along different builds, > not to mention the rest of the mess. I also wonder if there is > any clean method achieve the above effect. ] The answer is very simple. MS-Windows pass parameters to application as single ASCIIZ string not as arrays of ASCIIZ strings like in *nixes. It means that in Windows is not possible that SHELL divide parameters using given shell rulles and pass them correctly to application which only have to scan each of them. In MS-Win each program has to parse and divide parameters using it's own rules. Because program does not know anything about the SHELL from which he was executed then he cannot make it well for all environments. The main differens in GNU tools ported for MS-Windows is the method of parameters extracting. Never try to use tools compiled for MSYS/SHELL environment in cmd.exe/command.com and tools compiled for MS-Win command interpreter in *nix like shells because some more advanced parameters (using spaces or special characters) will be wrongly recognized. This is not GNU tools problem but MS-Windows limitation inherited from DOS. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour