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

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

Re: grep RFE: End-of-Line choices


From: Stepan Kasal
Subject: Re: grep RFE: End-of-Line choices
Date: Tue, 2 Mar 2004 09:01:27 +0100
User-agent: Mutt/1.4.1i

Hello,

On Mon, Mar 01, 2004 at 12:45:41PM -0800, Paul Eggert wrote:
> > [...] not to make grep automatically distinguish between
> > text and binary files [...]
> 
> But this would render "grep -r" essentially useless in a directory

agreed.

> Also, POSIX does not permit the sort of "autodetection" on input that
> is being proposed here, as a default behavior for "grep".  That is

In other words, we can have --eol=auto option, but POSIXLY_CORRECT
has to imply --eol=lf.

But I tend to think that the practical value of the autodetection
is so high in today's heterogenous world, that it's worth it to make
the default different from POSIX.
(Eli has presented a very strong arguments in his mails.)

Of course, this feature will not appear in the next bug fix release,
it will appear in a "development" release, so that it can be tested
thoroughly.

Stepan Kasal




reply via email to

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