[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: weird bash script error
From:       Denis Vlasenko <vda.linux () googlemail ! com>
Date:       2007-07-18 20:22:58
Message-ID: 200707182122.58307.vda.linux () googlemail ! com
[Download RAW message or body]

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

["awk.c.bz2" (application/x-bzip2)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic