X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <3100.81.17.205.14.1214374165.squirrel@webmail2.nebula.fi> In-Reply-To: <4861DC42.5060608@t-online.de> References: <4861DC42 DOT 5060608 AT t-online DOT de> Date: Wed, 25 Jun 2008 09:09:25 +0300 (EEST) Subject: Re: change in gawk from 3.1.5 to 3.1.6 From: "Nicholas Volk" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Awk is not really my expertise (haven't used it in years) but shouldn't that be awk '{printf ("%6d", 0x22) }' test.txt I mean that "0x22" usually refers to strings, not hexes. Works fine without quotations. br, Nicholas > Hello Corinna, > > the change in gawk from 3.1.5 to 3.1.6 broke my script. > > in 3.1.5 i received a correct value when fomatting hex strings > > > awk '{printf ("%6d","0x22" ) }' test.txt > 34 > > in 3.1.6 i receiveonly 0 when fomatting hex strings > > 3.1.6 > > awk '{printf ("%6d","0x22" ) }' test.txt > 0 > > > > it loks as if it didn't understand hex notation any longer. Or am I > missing something ? > > > > Greetings, > > > Helmut Kern > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/