[Haskell-beginners] Reading a list of null-terminated filenames from stdin?

Rustom Mody 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>
> wrote:
>> 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.

Valid... Ok

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...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20151011/ac6f67e1/attachment.html>

More information about the Beginners mailing list