Re: DEP-5 and files with white spaces
Benjamin Drung <email@example.com> writes:
> DEP-5 is nice, but how can I specify a license for a file with white
> spaces? For example you want to specify that the file "foo/file one.bar"
> is licensed under ISC, but "foo/file_one.bar" is licensed under GPL. How
> can you do that?
No, that distinction isn't representable. There was some earlier
discussion about that, and the conclusion reached was that it was a rare
case that wasn't worth making the syntax more complicated (after various
more complicated syntaxes were tossed around without making anyone very
The general way to specify information for a file name that contains
whitespace is to use wildcards to match the whitespace, which means that
you can't disambiguate from other files that only differ in the places
where whitespace is present.
Out of curiosity, have you run across a case where this matters, or were
you asking because it's a theoretical hole? It's definitely a theoretical
hole, but one of the reasons why we didn't spend more time on it was that
everyone was dubious that the case would arise in a real-world situation.
Russ Allbery (firstname.lastname@example.org) <http://www.eyrie.org/~eagle/>