bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gawk-stable] bug: fatal error when getline from directory


From: Paolo
Subject: Re: [gawk-stable] bug: fatal error when getline from directory
Date: Mon, 5 Jan 2009 00:30:14 +0100
User-agent: Mutt/1.3.28i

On Sun, Jan 04, 2009 at 06:59:22PM +0200, Eli Zaretskii wrote:

> The definition may be ``broad/vague'', but everybody knows what is a
> text file: it's a file that contains human-readable text.  Directories
> don't count.

please define 'human-readable'.
POSIX 'text file' is any sequence of chars except for '\0', in 1+ lines
shorter than LINE_MAX, which is OS/implementation-specific. So you may well
have a 'text file' which isn't that 'human-readable' at all.

*I* might agree that dirs aren't "text" nor "binary" files, yet you can 
open(2)+read(2) a dir without a glitch - you get an EOF.

But that's not the point.


-- 
paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]