Re: aap calling cvs problem on Windows

Bram Moolenaar <[email protected]> Fri, 05 Mar 2004 12:15:38 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Windows Akkerman wrote:

> Previously Bram Moolenaar wrote:
> > Executing system commands on MS-Windows is messy.  Best way to solve it
> > is installing Linux :-).
> 
> That actually isn't true; it is just much more common to have paths with
> whitespace in their name in windows which show quoting problems. Using
> system() to start processes makes it very hard to do things correctly
> since it really isn't designed for that.
> 
> I'm not sure of popen5 supports windows, but if it does it would be a
> much better way to start processes.

On Windows 95/98/ME there is still DOS under a thick layer of Windows.
This means you can execute just about any command in a console.
However, when in a GUI you need to open a console to reliably execute a
command, especially when redirecting output.  And commands build
specifically for Win NT may not run at all.

On Windows NT/2000/XP there is no proper support for executing command
line command.  The console is flaky, it does some kind of auto detection
of the kind of command, it never works 100% reliable.  People at MS have
admitted that the console will never execute DOS command reliably.  For
example, running Vim build for Win 98 in a Win NT system can crash a Win
NT system.  The only way to avoid that is detecting that Win NT is being
used and disable a few things.

All this is not directly related to Aap or Python but a basic problem
with executing commands.  That's why I suggest using Linux.

-- 
It is illegal for a driver to be blindfolded while operating a vehicle.
		[real standing law in Alabama, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click