Issue 655421: commands.py for Windows (original) (raw)

Created on 2002-12-17 21:30 by zopezen, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
commands.diff zopezen,2002-12-17 21:30 commands.py for Windows diff
Messages (4)
msg42025 - (view) Author: Andy McKay (zopezen) Date: 2002-12-17 21:30
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
msg42026 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-12-18 03:40
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.
msg42027 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2002-12-18 09:44
Logged In: YES user_id=113328 Surely getstatus(file) won't work, as Windows doesn't have a "ls" command?
msg42028 - (view) Author: Andy McKay (zopezen) Date: 2002-12-18 18:03
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.
History
Date User Action Args
2022-04-10 16:06:02 admin set github: 37626
2002-12-17 21:30:00 zopezen create