[Haskell-beginners] Reading a list of null-terminated filenames from stdin?
allbery.b at gmail.com
Sun Oct 11 14:57:27 UTC 2015
On Sun, Oct 11, 2015 at 5:22 AM, Harald Hanche-Olsen <hanche at math.ntnu.no>
> Andrew Bernard wrote:
>> It may be valid, but it is just asking for trouble with many tools and
>> utilities and scripts. Funny, I had to check re UNIX. I have been
>> programming UNIX systems for over thirty years and never even imagined a
>> newline in a filename!
>> Would the OP say why he needs to use newlines in filenames? Something
>> best avoided. I suppose this is not a Haskell matter, but one does have to
> The OP must speak for himself, but as far as I am concerned, no reasonable
> person uses newlines in filenames, ever.
> However, the possibility is there, and it may happen that someone
> unreasonable has created a filename with a newline in it. This may become a
> security issue if, for example, someone creates a file named
This is indeed the problem. I'm a sysadmin; if I need a tool like this, I
don't usually have any say in what is in the filenames --- and, sadly,
people *do* use all manner of odd characters, including newlines, non-UTF8,
etc. It's my place to deal with what is, not what would be in an ideal
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners