[Patches] [ python-Patches-655421 ] commands.py for Windows

noreply@sourceforge.net noreply@sourceforge.net
Wed, 18 Dec 2002 10:03:32 -0800


Patches item #655421, was opened at 2002-12-17 13:30
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=655421&group_id=5470

Category: Library (Lib)
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Andy McKay (zopezen)
Assigned to: Nobody/Anonymous (nobody)
Summary: commands.py for Windows

Initial Comment:
The commands.py  module claims to only work on 
posix, I really don't see why that should be case. 
The only issue is the use of { ;} in the command 
sent to popen, but that's just a matter of changing 
the command for the os. Simple.

If accepted there should be a documentation 
change as well, but not sure where that is.

Tested on Win2k using Python 2.1.3

----------------------------------------------------------------------

>Comment By: Andy McKay (zopezen)
Date: 2002-12-18 10:03

Message:
Logged In: YES 
user_id=166142

Oops, I have an ls exectuable on my box so I didn't 
notice that in testing. It would be simple to just parse 
the results of "dir file" though.

I'm not sure what to do about Win9x or WinME though, 
its clear I'll think a little harder about this one. 

----------------------------------------------------------------------

Comment By: Paul Moore (pmoore)
Date: 2002-12-18 01:44

Message:
Logged In: YES 
user_id=113328

Surely getstatus(file) won't work, as Windows doesn't have 
a "ls" command?

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2002-12-17 19:40

Message:
Logged In: YES 
user_id=31435

Just noting that this doesn't work on Win95, Win98, 
Win98SE, or Win ME -- command.com (their native shell) 
doesn't support any way to redirect stderr.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=655421&group_id=5470