3 ms·
> reliable escaping One thing that I'm surprised about is that there is a severe lack of easy shell escaping of strings in more modern scripting languages. The
by pyre 15y ago
> reliable escaping
One thing that I'm surprised about is that there is a severe lack of easy shell escaping of strings in more modern scripting languages. There should just be a printf symbol/modifier for it. I should be able to:
sprintf("command %S %S", "blah blah blah", "blah -blah")
to get
command blah\ blah\ blah blah\ \-blah
Also, take a look at: https://github.com/bsandrow/python-shellshock https://github.com/bsandrow/python-shellshock
Let me know if you can think of anything that is painful to do in Python, but easy to do on the shell.