On May 25, 2010, at 2:54 PM, Paul Moore wrote:
> On 25 May 2010 13:22, Eric Smith wrote:
>> Keep in mind that these routines typically only work on Unix-like systems,
>> where the shell has a set of well defined rules for quoting and parsing. On
>> Windows, each executable is in charge of parsin
On 25 May 2010 13:22, Eric Smith wrote:
> Keep in mind that these routines typically only work on Unix-like systems,
> where the shell has a set of well defined rules for quoting and parsing. On
> Windows, each executable is in charge of parsing its own parameters from a
> string. This is usually
Éric Araujo wrote:
In my case, I was building up a command line to pass as a single string
to subprocess, and needed a way to quote the args explicitly. That's
why I went looking at this.
FYI, if you need the reverse operation (string → list), look at shlex.
Keep in mind that these routines t
> In my case, I was building up a command line to pass as a single string
> to subprocess, and needed a way to quote the args explicitly. That's
> why I went looking at this.
FYI, if you need the reverse operation (string → list), look at shlex.
Cheers
On Mon, May 24, 2010 at 11:23 AM, Bill Janssen wrote:
> C. Titus Brown wrote:
>
> > On Mon, May 24, 2010 at 07:46:32AM -0700, Bill Janssen wrote:
> > > I'm kind of surprised to see that the subprocess module doesn't have a
> > > documented function for calling to properly quote command-line
> >
C. Titus Brown wrote:
> On Mon, May 24, 2010 at 07:46:32AM -0700, Bill Janssen wrote:
> > I'm kind of surprised to see that the subprocess module doesn't have a
> > documented function for calling to properly quote command-line
> > arguments. Nor does it seem to do so automatically -- at least o
On Mon, May 24, 2010 at 07:46:32AM -0700, Bill Janssen wrote:
> I'm kind of surprised to see that the subprocess module doesn't have a
> documented function for calling to properly quote command-line
> arguments. Nor does it seem to do so automatically -- at least on Unix.
Bill, I may be about to
I'm kind of surprised to see that the subprocess module doesn't have a
documented function for calling to properly quote command-line
arguments. Nor does it seem to do so automatically -- at least on Unix.
It *does* have an undocumented function called "list2cmdline" (refered
to in passing in the