Sanitising arguments to shell commands

Rick King rickbking at comcast.net
Fri Aug 21 09:07:04 EDT 2009


shlex doesn't handle unicode input though, so, in general, it's not a 
good solution.

Rick King
Southfield MI

> http://docs.python.org/library/shlex.html
>
> module shlex — Simple lexical analysis
> New in version 1.5.2.
> "The shlex class makes it easy to write lexical analyzers for simple
> syntaxes resembling that of the Unix shell."
>   



More information about the Python-list mailing list