You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-01-20.19:56:54.938>created_at=<Date2008-01-09.06:22:57.480>labels= ['type-bug', 'library', 'OS-windows']
title='popen fails when there are two or more pathnames/parameters with spaces'updated_at=<Date2008-01-20.19:56:54.936>user='https://bugs.python.org/shoermann'
If commands similar to this (including all quotation
marks) '"C:\\Program Files\\test.bat" blah "C:\\Data Files\\test2.txt"'
are executed using popen, then the following is returned from
stderr "'C:\\Program' is not recognized as an internal or external
command,\noperable program or batch file.\n". No use of quotation has
been able to fix this. As soon as there is more than one pair of
quotations inside the command string popen will not handle the command
correctly.
I have attached some code that demonstrates the bug. You need to run it
on Windows and you need to place some bat file (it doesn't need to do
anything just exist) at C:\Program Files\test.bat (or change the
reference in the code, but it does need to include spacing). The first
popen call works the second popen call will fail, because there are 2
pathnames in the code with spaces. I am using the popen4 module in os
but I also tested popen2 and popen3 and they do the same thing.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: