[BusyBox] awk bug

Sauder, Vernon Vernon.Sauder at spirentcom.com
Fri Apr 23 23:42:09 UTC 2004


I think there is a bug in busybox awk.

echo baudrate=9600 | awk -F= '{ print $2; }'

This line should print "9600" (and does on RedHat) but on busybox (latest
cvs, post pre10) it always prints "baudrate", no matter which token I ask it
to print -- $1, $2, $3 or $4. The -F does not seem to play a difference. If
the input is space separated, and -F is not given, the same output.

I took a peek at the awk implementation but there was no hope of a quick
diagnosis to an unfamiliar eye.

Vernon Sauder
Spirent Communications, Inc
www.spirentcom.com



More information about the busybox mailing list