Subject: Re: pkg/33410: pkgsrc problem with posix awk
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-bugs
Date: 05/02/2006 21:30:05
The following reply was made to PR pkg/33410; it has been noted by GNATS.

From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33410: pkgsrc problem with posix awk
Date: Tue, 02 May 2006 23:26:37 +0200

 joerg@britannica.bec.de wrote:
 > The following reply was made to PR pkg/33410; it has been noted by GNATS.
 > 
 > From: joerg@britannica.bec.de
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/33410: pkgsrc problem with posix awk
 > Date: Tue, 2 May 2006 13:26:07 +0200
 > 
 >  On Tue, May 02, 2006 at 11:20:03AM +0000, Aleksey Cheusov wrote:
 >  >  Also note, that the following gawk warnings should also be fixed.
 >  >  
 >  >  awk: /srv/pkgsrc/pkgtools/x11-links/../../mk/plist/plist-info.awk:77: warning: escape sequence `\/' treated as plain `/'
 >  >  awk: /srv/pkgsrc/pkgtools/x11-links/../../mk/plist/plist-info.awk:77: warning: escape sequence `\.' treated as plain `.'
 >  
 >  I prefer to ignore gawk and keep them, since the version is easier to
 >  read and correct.
 
 And I prefer to do things right. Other implementations of awk may just 
 continue without warning (the OpenGroup's web site is badly formatted, 
 but I think it states undefined behavior for invalid programs), and can 
 you tell what they do?
 
 In particular the second warning should alert you. Although the author 
 probably meant to escape the dot, it is not treated as such.
 
 Up to now, pkglint cannot not check standalone AWK programs, but I think 
 this feature will exist before the pkglint code reaches 500 kB in size. 
 And as soon as it can check AWK programs, it will tell you the same as I 
 do here.
 
 Roland