<div dir="auto"><div>I think the example of `rm -rf` was chosen mainly to demonstrate that it is unsafe, and therefore you need to use shlex.quote.</div><div dir="auto"><br></div><div dir="auto">But if people can recommend another example that is not as severe as `rm -rf`, perhaps we can consider changing it.<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Thu, Dec 27, 2018, 6:30 PM Carlo Lam <<a href="mailto:calam12@gmail.com" target="_blank" rel="noreferrer">calam12@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hello Python Docs,<div><br></div><div>I am no expert of python, but i do know linux quite a bit, and I was astonished to see that you show as example a rm -rf ~ , i will suggest to perhaps find a better example as this could be terrible for someone who does not know linux either.</div><div><br></div><div><a href="https://docs.python.org/3/library/shlex.html" rel="noreferrer noreferrer" target="_blank">https://docs.python.org/3/library/shlex.html</a><br></div><div>look in the quote example.</div><div><br></div><div>Thank you,</div><div>Carlo</div></div></div>
_______________________________________________<br>
docs mailing list<br>
<a href="mailto:docs@python.org" rel="noreferrer noreferrer" target="_blank">docs@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/docs" rel="noreferrer noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/docs</a><br>
</blockquote></div></div></div>