Re: [PATCH] change Perl syntax to support Perl 5.6
- From
Randal L. Schwartz <merlyn@stonehenge.com>
- Date
- Aug 31, 2008, 13:37 UTC
- Message-ID
- <8663phnw3z.fsf@blue.stonehenge.com>
- In-Reply-To
- <32541b130808302235g6a23efcfs78efe2ef557cd9c7@mail.gmail.com>
>>>>> "Avery" == Avery Pennarun <apenwarr@gmail.com> writes:
Avery> Shell quoting is a disaster (including security holes, where relevant) Avery> waiting to happen. The above is the only sane way to do it, and it Avery> isn't very hard to implement. (Instead of system() in the subprocess, Avery> you can use exec().)
quotemeta() is about regex quoting. This is not precisely the same as shell quoting, and is both misleading, and potentially broken.
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion