[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2010-08-12 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: OK; issue2304 is now fixed and closed. But it doesn't seem to make any difference to this behaviour. I've just retested and I see on py3k the behaviour the OP saw. CreateProcess does the same thing and I couldn't even get it to work with

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2010-01-30 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'm not seeing the same thing Tim sees on 2.6, or 3.1 for that matter. Looks like this is still an issue. -- nosy: +brian.curtin priority: - normal stage: - test needed versions: +Python 2.6, Python 3.1 -Python 2.5

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg
New submission from Erik Sandberg sandb...@virtutech.com: When subprocess.call is told to execute a .bat file on Windows, and the path to the batch file is given as an absolute path, and the path includes a left parenthesis ('('), then the call fails with a message similar to the following; it

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg
Erik Sandberg sandb...@virtutech.com added the comment: I'm using Python 2.5.1, by the way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5484 ___

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg
Erik Sandberg sandb...@virtutech.com added the comment: I have narrowed down the problem further: The same error happens with the following code: import win32process win32process.CreateProcess(None, 'f(o.bat', None, None, 1, 0, None, None, win32process.STARTUPINFO()) --

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg
Erik Sandberg sandb...@virtutech.com added the comment: argh, it seems that the problem is in how CreateProcess works; exactly the same error can be provoked from C. -- Added file: http://bugs.python.org/file13321/parenbug.c ___ Python tracker

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg
Erik Sandberg sandb...@virtutech.com added the comment: I experimented further, the only way to run a .bat file whose name contains funny characters, seems to be: subprocess.call('f(o.bat', shell=True) -- ___ Python tracker rep...@bugs.python.org

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Erik Sandberg wrote: Erik Sandberg sandb...@virtutech.com added the comment: I experimented further, the only way to run a .bat file whose name contains funny characters, seems to be: subprocess.call('f(o.bat', shell=True) Well there's

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg
Erik Sandberg sandb...@virtutech.com added the comment: Did you test your code? I'm pretty sure I tried almost exactly the code you suggest, and got an error like 't' is not recognized as an internal or external command...' (I cannot test this right now as I don't have access to Windows

[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Erik Sandberg wrote: Erik Sandberg sandb...@virtutech.com added the comment: Did you test your code? Several times, cutting and pasting into the Python interpreter. But I missed the fact that you were running Python 2.5 Python 2.6.1