NetBSD-Bugs archive

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

Re: bin/48017: awk(1) fails to treat var as integer (may be related to #47840)



The following reply was made to PR bin/48017; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
sdaoden%gmail.com@localhost
Subject: Re: bin/48017: awk(1) fails to treat var as integer (may be related to 
#47840)
Date: Sat, 6 Jul 2013 05:21:53 +0400

 On Fri, Jul 05, 2013 at 21:50:00 +0000, Steffen Daode Nurpmeso wrote:
 
 >    printf '6 '; printf "F0000 F0001\n" |
 >    awk '{r1 = sprintf("%d", "0x" $1); r2 = sprintf("%d", "0x" $1); while (r1 
 > < r2) {print r1; ++r1}}'
 
 Should it be $2 for r2?
 
 >  So -- indeed.  Sorry.
 
 It's hard to decipher what you are trying to say.
 
 -uwe
 


Home | Main Index | Thread Index | Old Index