On Tuesday 17 July 2007 07:16, Juan Martin wrote:
> Hi, Denis!
> 
> OK sorry, here it goes.
> 
> 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.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to