
17 Jul
2014
17 Jul
'14
11:04 a.m.
On Thu, Jul 17, 2014 at 8:57 PM, Erik Christiansen <dvalin@internode.on.net> wrote:
Heck, in personal shellscripts I don't even bother with defensive quoting of arguments, because spaced filenames will never be passed to them.
And that's the kind of dangerous situation that manually sanitizing filenames leads to. If you don't program (even for personal use) to cater to all possible inputs, you're going to have issues at some point. Never make assumptions about user input. Even your own. I'd consider that a much bigger risk than spaces in filenames, personally. YMMV / Brett