[Haskell-beginners] Reading a list of null-terminated filenames from stdin?
rustompmody at gmail.com
Sun Oct 11 05:28:28 UTC 2015
On Sun, Oct 11, 2015 at 10:43 AM, Brandon Allbery <allbery.b at gmail.com>
> On Sun, Oct 11, 2015 at 1:01 AM, Andrew Bernard <andrew.bernard at gmail.com>
>> On what operating system can filenames contain newlines?
> Any unixlike system. You would need to quote the newline from the shell,
> but it is perfectly valid.
Perfectly?? Here's a counter view
Summary: Funny chars in filenames is a feature close to a bug in *Nix
So my advice for this would be:
- If you have better things to do dont bother
- if for some reason you do need to bother, respect Postel's law
<https://en.wikipedia.org/wiki/Robustness_principle> and allow it out more
reluctantly than in
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners