From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60688 invoked by alias); 11 Jul 2019 18:51:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 60680 invoked by uid 89); 11 Jul 2019 18:51:30 -0000 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 Received: from mail-lf1-f42.google.com (HELO mail-lf1-f42.google.com) (209.85.167.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Jul 2019 18:51:20 +0000 Received: by mail-lf1-f42.google.com with SMTP id x3so4800406lfc.0 for ; Thu, 11 Jul 2019 11:51:20 -0700 (PDT) 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 Date: Thu, 11 Jul 2019 18:51:00 -0000 Message-ID: Subject: Possible issue with gawk 5.0.1-1: Getting new warnings To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-07/txt/msg00082.txt.bz2 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