Re: change in gawk from 3.1.5 to 3.1.6
On Jun 25 09:09, Nicholas Volk wrote: > 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. Is Nicholas answer sufficient? If not, it would still be an upstream problem. You should better ask on help-gnu-utils AT lists gnu org Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
Re: change in gawk from 3.1.5 to 3.1.6
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/
change in gawk from 3.1.5 to 3.1.6
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/