Shell quoting as part of the standard library?

David M. Wilson dw-google.com at botanicus.net
Sun Dec 14 01:12:36 EST 2003


Peter Otten <__peter__ at web.de> wrote...

> >>> from commands import mkarg
> >>> mkarg("one silver $")
>  " 'one silver $'"
> >>> mkarg("one's own $")
> ' "one\'s own \\$"'

I don't get it. I just don't get it. I'm really starting to doubt I
have any initiative whatsoever. :)

Ok, yet another mystery "why hasn't python got that" solved. Thanks!


David.




More information about the Python-list mailing list