weird bash script error
Denis Vlasenko
vda.linux at googlemail.com
Wed Jul 18 20:22:58 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: awk.c.bz2
Type: application/x-bzip2
Size: 18505 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070718/e2187c04/attachment-0002.bin
More information about the busybox
mailing list