bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] gawk 4.1.3 gensub() warning


From: Ed Morton
Subject: [bug-gawk] gawk 4.1.3 gensub() warning
Date: Thu, 3 Sep 2015 06:52:45 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

I'm seeing this new warning in gawk 4.1.3 executing existing scripts:

$ echo 'a' | gawk '{print gensub(/a/,"b","")}'
gawk: cmd. line:1: (FILENAME=- FNR=1) warning: gensub: third argument `' treated as 1
b

This will impact a ton of scripts, like if sed suddenly started issuing warnings if you wrote `s/foo/bar/` instead of `s/foo/bar/1`. Is it here to stay?

    Ed.

reply via email to

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