Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> metaperl wrote:
>
> > I downloaded a file which has a space in the filename. I want to run a
> > shell unzip on it, but it fails in my current code:
> >
> > syscmd = "cd %s ; unzip %s" % (self.storage.input, file.basename())
> > os.syste
metaperl wrote:
> I downloaded a file which has a space in the filename. I want to run a
> shell unzip on it, but it fails in my current code:
>
> syscmd = "cd %s ; unzip %s" % (self.storage.input,
> file.basename())
> os.system(syscmd)
>
> because no escaping was done.
>
> Is t
Metaperl wrote:
> I downloaded a file which has a space in the filename. I want
> to run a shell unzip on it, but it fails in my current code:
>
> syscmd = "cd %s ; unzip %s" % (self.storage.input, file.basename())
> os.system(syscmd)
>
> because no escaping was done.
Using "cd '
I downloaded a file which has a space in the filename. I want to run a
shell unzip on it, but it fails in my current code:
syscmd = "cd %s ; unzip %s" % (self.storage.input,
file.basename())
os.system(syscmd)
because no escaping was done.
Is there a more principled way to constru