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

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

address@hidden: Re: grep RFE: End-of-Line choices]


From: Eli Zaretskii
Subject: address@hidden: Re: grep RFE: End-of-Line choices]
Date: Fri, 27 Feb 2004 19:51:23 +0200

Forwarded to the list at Stepan's request.

------- Start of forwarded message -------
Date: Fri, 27 Feb 2004 17:20:17 +0100
From: Stepan Kasal <address@hidden>
To: Eli Zaretskii <address@hidden>
Subject: Re: grep RFE:  End-of-Line choices
Content-Disposition: inline
In-Reply-To: <address@hidden>
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no   
version=2.63
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on matsrv.math.cas.cz
X-PRIVAWALL-ID: 0002556710ac
X-OriginalArrivalTime: 27 Feb 2004 16:22:09.0867 (UTC) 
FILETIME=[D96DD9B0:01C3FD4D]

Hello,

On Fri, Feb 27, 2004 at 05:20:39PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 27 Feb 2004 14:08:08 +0100
> > From: Stepan Kasal <address@hidden>
> > 
> > What about the following: find first occurences of '\n' and '\r' in the
> > buffer.  If they form "\r\n", we have a DOS file, if no "\n" was found
> > and "\r" was found, we have a Mac file, Unix file otherwise.
> > If neither \n nor \r was find, extend the buffer and recurse.
> 
> Emacs uses N first lines in the file, N being a parameter (currently
> set to 3).  (For Grep, I'd let the user control N with a command-line
> switch.)  If the N lines end inconsistently, the file is treated as if
> it had Unix-style NL-only lines.
> 
> Otherwise, yes, that's how it should probably work.

thanks, yes, I like this.

You haven't sent this mail to the list, will you please forward it?

Thanks,
        Stepan
------- End of forwarded message -------




reply via email to

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