gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/csv-revamp, updated. gawk-4.1.0-5195-g2819c74


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/csv-revamp, updated. gawk-4.1.0-5195-g2819c74b
Date: Fri, 24 Mar 2023 05:39:26 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/csv-revamp has been updated
       via  2819c74b44ef5da63a2da8ea1300fae6df185edc (commit)
      from  7af995289b05c5e5843facc4ba3a21672c2028ad (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=2819c74b44ef5da63a2da8ea1300fae6df185edc

commit 2819c74b44ef5da63a2da8ea1300fae6df185edc
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Fri Mar 24 12:38:20 2023 +0300

    Fix for set_RS() in CSV mode.

diff --git a/ChangeLog b/ChangeLog
index a18b61c4..d01d36ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-03-24         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * io.c (set_RS): Fix first time and warning logic for csv mode.
+
 2023-03-23         Arnold D. Robbins     <arnold@skeeve.com>
 
        * io.c (csvscan): Strip CRs.
diff --git a/io.c b/io.c
index b8c89b6c..d2e5d2b4 100644
--- a/io.c
+++ b/io.c
@@ -4168,9 +4168,12 @@ set_RS()
        refree(RS_re[1]);
        RS_re[0] = RS_re[1] = RS_regexp = NULL;
 
-       if (! first_time && ! warned && do_csv) {
-               warned = true;
-               warning(_("assignment to RS has no effect when using --csv"));
+       if (! first_time && do_csv) {
+               if (! warned) {
+                       warned = true;
+                       warning(_("assignment to RS has no effect when using 
--csv"));
+               }
+               return;
        }
 
        if (RS->stlen == 0) {

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 4 ++++
 io.c      | 9 ++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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