[Top][All Lists]

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

Re: [bug-gawk] mixed LF/CRLF scripts: incorrect line numbers

From: arnold
Subject: Re: [bug-gawk] mixed LF/CRLF scripts: incorrect line numbers
Date: Thu, 10 May 2018 14:25:57 -0600
User-agent: Heirloom mailx 12.4 7/29/08


"Jannick" <address@hidden> wrote:

> Many thanks for taking the time.

Sure. Glad to help.

> Agree. And this is why - especially on Windows - /^[[:space:]]*$/
> identifies blank lines in CRLF files, while /^[[:blank:]]*$/ does as it
> does not see the CR at the end of the line. This is a subtle difference
> I got often trapped. May I suggest to make in the manual
> (https://www.gnu.org/software/gawk/manual/gawk.html#Bracket-Expressions)
> all characters in the character class :space: explicit? Here CR ('\r')
> in the list could help Windows users I believe.

I have made this change and will push it to the Git repo shortly.



reply via email to

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