bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Documentation or POSIX / compatibility mode bug


From: Aharon Robbins
Subject: Re: [bug-gawk] Documentation or POSIX / compatibility mode bug
Date: Tue, 26 Apr 2016 19:45:53 +0300
User-agent: s-nail v14.8.6

Hi.

Thanks for the bug report and discussion.

On Tue, Apr 26, 2016 at 5:23 AM, Glauco Ciullini
<address@hidden> wrote:

> I'm writing in regard to a bug afflicting the latest version of Gawk
> (4.1.3).
>
> The bug is either in Gawk's documentation (namely in the `man` page) or in
> Gawk's behavior in POSIX / compatibiliy mode.

The bug is in gawk. Amazingly enough. It goes WWWWAAAAAYYYY back, too.

Here is the fix.

I will add some test cases to the test suite as well.

Thanks,

Arnold
---------------------------------------
diff --git a/io.c b/io.c
index 3a5748b..ca5545e 100644
--- a/io.c
+++ b/io.c
@@ -3668,7 +3668,7 @@ set_RS()
        if (RS->stlen == 0) {
                RS_is_null = true;
                matchrec = rsnullscan;
-       } else if (RS->stlen > 1) {
+       } else if (RS->stlen > 1 && ! do_traditional) {
                static bool warned = false;
 
                RS_re_yes_case = make_regexp(RS->stptr, RS->stlen, false, true, 
true);



reply via email to

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