X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=HiOOcaE1Z+n2dsXYloDdxyO23QOTa
	L6cRNJs+Yx2R3qcwqPUX6oGjubDaeN8pX72+PwBut4zs6ExEVgeiYqBxu/MvMGd6
	aCcJk0JVAIAXHUraF/iyt64UUP4/Veq+WG2l7+GsfuqXPDV8/PHIWPdvUfg1ekN0
	yCT5bmwSysrpdk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=4bABr1kTH4uKamX/rgrSGzVGFoA=; b=Wbz
	DYmn8lmxk8PlkK1JhodytMPwKjkTJZ/IZDkzCZ+u8R3CDpbjh0df+fJ79bz47uB+
	Su8OpTow5epYpDOM1A/OSvbCH+amU+l/9mUI4F7HcfhFd7C+oB9BTwkuuSVkQvhx
	qn+z6KLhNkwpaMxZx+FvEz73awDVFaEAFFikwIKw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=5.0.1, H*c:alternative
X-HELO: mail-lf1-f42.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:from:date:message-id:subject:to;        bh=QnnLRkL69cd4XRAwTvpigWhumb43YYbtcoN/g4VxUws=;        b=deo+1IBpDVrhhatF11CN5saFtFk+tLf+KJRVIazXTFcfs/ZlpMjrRxiK7tu9fqYRtx         IKY9ZZtd/wKQLXh7mTvW1tWHu243q2iziHS34A5A1bbqn2Zf+ZsJ2o/K7TCYtN5TQcFb         GDYJ8nKEi5OJl53F6VkXArm73W39GyXfoRDwgtrNaVSbg0CPS1BqKbMiTk4jiBShTiwP         KoShkOxBL71mwskM/vnyhJQDhfSQZ+mN1ubVBdTu15JVQQenlzAN6N4WHkLtP9SxOJ35         sjtLIYZDb+B2WzwndRks/OanErmnoBAUnGC1aLSLx3py5hsxSxbNal/x+c4ZWN4S0wob         /02w==
MIME-Version: 1.0
From: Vipul P <vipul.voip2@gmail.com>
Date: Thu, 11 Jul 2019 11:51:09 -0700
Message-ID: <CAGtwZuYLXDHFiAHGVYw8s+jqt0bNtGMpy+6fOSiqjZddazXZew@mail.gmail.com>
Subject: Possible issue with gawk 5.0.1-1: Getting new warnings
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"

Hello,

Here is a sample script to invoke awk:

$ cat ./gawk_error.sh
#!/bin/sh
echo "This:is:a:colon:separated:line:%%%:" | awk '{
  gsub("\\%", "%25", $0);
  gsub("\\:", "%3A", $0);
  print
  }'
----

If I invoke it with gawk 5.0.1-1, I see warnings as below:

$ uname -a
CYGWIN_NT-10.0 MyPC 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin

$ awk -V
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2019 Free Software Foundation.
...

$ ./gawk_error.sh
awk: cmd. line:2: (FILENAME=- FNR=1) warning: regexp escape sequence `\%'
is not a known regexp operator
awk: cmd. line:3: (FILENAME=- FNR=1) warning: regexp escape sequence `\:'
is not a known regexp operator
This%3Ais%3Aa%3Acolon%3Aseparated%3Aline%3A%25%25%25%3A

-----
This script runs without any warnings with older versions of gawk:

$ awk -V
GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.1, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2018 Free Software Foundation.
...

$ ./gawk_error.sh
This%3Ais%3Aa%3Acolon%3Aseparated%3Aline%3A%25%25%25%3A

----

The script runs without any warnings on Linux and other Unix variants.

Is this a regression in gawk 5.0.1-1 on Cygwin ?

Thanks in advance.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

