New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem parsing cmdline parameter quoted with a trailing \ #42939
Comments
This problem happens in launching Python from Windows. p.py import sys
from pprint import pprint
pprint(sys.argv) Note slash inside the quote is treated as path g:\usr\bin>c:\python24\python.exe g:\usr\bin\p.py " However the trailing \ is treated as an escape g:\usr\bin>c:\python24\python.exe g:\usr\bin\p.py " |
Logged In: YES Is that Python-specific? I thought sys.argv is the cmdline |
Logged In: YES After having a quick look it appears as though python is in |
Logged In: YES Whoops, my bad. Its a windows issue, not a python one. |
Logged In: YES OK, closing. |
Logged In: YES I don't completely follow your logic. But I have reproduce P.java public class P {
public static void main(String argv[]) throws Exception {
for (int i=0; i < argv.length; i++) {
System.out.println("argv " + i + " " + argv[i]);
}
}
} BAD GOOD |
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: