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)



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