[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Eric Smith
Changes by Eric Smith : -- components: -None resolution: -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Frank Rügheimer
Frank Rügheimer added the comment: You are right, it seems to work when the file is passed directly into python so the quotes are stripped somewhere before python even gets to see them. Thanks -- status: open -> closed ___ Python tracker

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread R. David Murray
R. David Murray added the comment: Works fine for me on Gentoo linux. What exactly is 'python' in your path, and what happens if you do /usr/bin/python3 argtest? I'm 99.99% certain this is not a bug in Python, otherwise it would have been reported long before now, since it would represent a

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Eric Smith
Eric Smith added the comment: The python version works for me also on a Fedora box with 3.2 and 2.7. What shell are you using? Did you compile this python yourself, or did it come with your distro? -- ___ Python tracker

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Rügheimer
Rügheimer added the comment: 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:51:33 EDT 2010 i686 i686 i386 GNU/Linux GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu) I wrote test program in C to do the same thing as before and the arguments are treated properly: > ./testcargs arg1 arg2 "

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Eric Smith
Eric Smith added the comment: I don't see this behavior on MacOS: $ ./argtest arg1 arg2 "this should be a single argument" 2.6.1 (r261:67515, Feb 11 2010, 15:47:53) [GCC 4.2.1 (Apple Inc. build 5646)] ['./argtest', 'arg1', 'arg2', 'this should be a single argument'] This splitting is done by

[issue10322] sys.argv and quoted arguments on command line

2010-11-05 Thread Rügheimer
New submission from Rügheimer : Words in quoted command line arguments containing whitespace are split into separate entries of the argument vector sys.argv. This implemetation (quote removal + word splitting) removes information required to read string arguments passed via the command line.