[BusyBox] Bug Report:BB 1.00 awk

Dmitry Zakharov dmit at crp.bank.gov.ua
Mon Jun 6 10:59:08 UTC 2005


Charlie Brady wrote:

> Here's another awk parsing problem - unary post increment - pre is fine:
>
>bash-2.05a$ echo 2,3 | gawk -F , '{ $2++ }'
>bash-2.05a$ echo 2,3 | /tmp/busybox/busybox awk -F , '{ $2++ }'
>awk: cmd. line:1: Unexpected token
>
Here's a fix for this. There is another problem with constructions like 
"print (A+B) ++C", I don't
know whether somebody uses such constructions (fixing both these 
problems would require very
serious change in awk code).

--
Dmitry

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: awk.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20050606/c8ad9ee0/attachment.diff 


More information about the busybox mailing list