News for hackers. Stuff that matters.
Re:Shelling Out Sucks by hesselink on Sunday March 11, 2012 @09:04AM (#3690281)
> Maybe the solution is to follow SQL and implement a prepared-query system for shell commands?

You mean shell scripts?

Re:Shelling Out Sucks by angelbob on Sunday March 11, 2012 @01:19PM (#3690690)
No. Shell scripts have the same problem where you're not separating options from filenames and you're often not preventing a single user-supplied argument from expanding into multiple final arguments.

The list-form shell commands referenced earlier are closer, but still don't separate filenames (input) from arguments unless you remember to add "--".

But they do prevent things like pipes, which is a big deal.