perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From demerphq <>
Subject Re: [OT] AW: Unsuccessful stat on filename containing newline in
Date Fri, 01 Mar 2013 08:16:29 GMT
On 28 February 2013 21:12, André Warnier <> wrote:
> I am ranting, and I know it.  But the basic fact is that " ", in 99% of
> programming languages

I doubt it, considering all the major languages I know of use a "," to
separate arguments.

And if you are in a programming language then the filename will be
stored in a variable, so you generally wont care if it contains
spaces, or whatever.

> and OS shells

Here it is maybe true.

> is a meta-character that normally acts
> as a separator between arguments, keywords, parameters, whatever.  So
> electing to allow it in paths and filenames was a bad decision, which has
> cost so far millions of unproductive hours to be spent, and will cost many
> more millions before a reasonable parade is found.

If you accept arbitrary sets of filenames and expect to feed them as
arguments to something like a shell without managing issues like them
having spaces in them then you are opening yourself up to way worse
issues than them having spaces in them.

Whats to stop them giving you a filename that is actually a command,
or a redirect, or whatever?


perl -Mre=debug -e "/just|another|perl|hacker/"

View raw message