Bug report
Bug description:
import os
import sys
args = [sys.executable, '-c', 'print("hello from execve")']
os.execve(args[0], args, {})
results in
print(hello from execve)
^^^^
SyntaxError: invalid syntax
Using
args = [sys.executable, '-c', "print('hello from execve')"]
results in
print('hello
^
SyntaxError: unterminated string literal (detected at line 1)
Both work like expected in WSL or native Ubuntu.
The only thing that somewhat works is omitting the spaces "print('hellofromexecve')" in the second case.
3.15 back to and including 3.10 are affected.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Bug report
Bug description:
results in
Using
results in
Both work like expected in WSL or native Ubuntu.
The only thing that somewhat works is omitting the spaces
"print('hellofromexecve')"in the second case.3.15 back to and including 3.10 are affected.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows