Hello Holger, On Wed, 24 Oct 2012 10:31:22 +0200 (CEST) "li...@wansing-online.de" <li...@wansing-online.de> wrote:
> > Please tell me your gawk's version. > > I'm using stable, so that should be gawk 1:3.1.7.dfsg-5 (cannot check > rightnow, > I am at work). OK, I see. I was mistaken. My changes work with 4.0.1, but don't work with 3.1.7. It's my BUG. > If it does not work that way, maybe I could upgrade on squeeze-backports > version > (1:4.0.1+dfsg-2~bpo60+1)? Mmmmmm... I want to fix that BUG. So, would you try my patch before upgrade? It works fine in my box. If it works yours, I will commit the patch. regards, -- +--------------------------------------------------------+ KURASAWA Nozomu (nabetaro) <nabetaro @ caldron.jp> GnuPG FingerPrint: F3A9 35FC C5D5 7FBC 7009 895A D5BE 94B9 4E90 7A5F +--------------------------------------------------------+
Index: scripts/merge_xml.awk =================================================================== --- scripts/merge_xml.awk (revision 68289) +++ scripts/merge_xml.awk (working copy) @@ -80,8 +80,7 @@ fname = FNAME # Test whether file exists - getline <PARSEFILE - if (length(ERRNO) != 0) { + if ( ( getline <PARSEFILE ) <= 0 ) { print "** Error: file '" PARSEFILE "' does not exist!" >>LOG return }
pgp4SeDhS2Gjv.pgp
Description: PGP signature