On Wednesday 18 July 2007 00:25, Denis Vlasenko wrote:
> > Setup.sh reads BlackBox.conf varsets, and build a set of vars with cfg_ 
> > prefix then it prints it to console (just for cheap debugging as well as 
> > echo lines) output contain these lines.
> > 
> > I guess Paul Fox is right and "awk" has to be blamed so...
> 
> Well, it's rather easy to reduce it to trivial testcase:
> 
> echo "GNU awk:"
> echo "[set_1]" | /usr/bin/awk -F '[][]' 'NF==3 && $0 ~ /^\[.*\]/ { print $2 }'
> echo "Bbox awk:"
> echo "[set_1]" | /bin/awk -F '[][]' 'NF==3 && $0 ~ /^\[.*\]/ { print $2 }'
> echo "End"
> 
> # sh Setup1.sh
> GNU awk:
> set_1
> Bbox awk:
> End
> 
> Yes, awk is guilty.

Hopefully fixed in svn. Please try latest svn or just replace awk.c
in your tree with attached file.
--
vda

Attachment: awk.c.bz2
Description: BZip2 compressed data

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to