[BusyBox] awk bug.
David Updegraff
dave at cray.com
Tue Apr 29 16:58:51 UTC 2003
Hi.
I noticed that awk's field parameters were broken when cross
compiling busybox from Solaris to soft-float ppc405.
# echo 1 2 3 | awk '{print $2}'
1
Somehow, this does not happen when the cross compile is hosted
on linux-x86.. but anyway, its a bug in awk: a double is cast
to an int, value is lost. I don't know that the offical doctrine
is to convert a double to an int, but I don't think its just i=(int)d.
Anyway, enlcosed patch fixes it.
Thanx for assistance.
--
Dave Updegraff / dave at cray.com / 218-525-1154
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: awk.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20030429/5722d42e/attachment.diff
More information about the busybox
mailing list