On Tue, Oct 13, 2009 at 6:35 AM, Teh Kok How <[email protected]> wrote:
> Hi;
>        I have built util-linux's gawk for comparison and the result is the
> same.

The same as what? You did even show the result, you showed
only an output from some debugging version of awk.

Please build unmodified busybox-1.15.2, then post the exact
command you use, what exactly it prints, and attach your .config
file.

> I suspect it has to do with ASH. Which shell did you use in your
> testing?

It is very unlikely it has anything to do with ash. This command:

awk -F"-" '{ print $1,$2 }' input.txt

does not use any complex shell features.

> [r...@smartbridges:~ 1]# gawk --version
> GNU Awk 3.1.6
> Copyright (C) 1989, 1991-2007 Free Software Foundation.
...
> [r...@smartbridges:~ 1]# echo $SHELL
> /bin/sh
> [r...@smartbridges:~ 1]# echo $TERM
> xterm
> [r...@smartbridges:~ 1]# awk -F: '{ print $1 }' /etc/passwd
> root:x:0:0:root:/root:/bin/sh
> [r...@smartbridges:~ 1]# busybox awk -F: '{ print $1 }' /etc/passwd
> root:x:0:0:root:/root:/bin/sh

So? Where's the problem?

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

Reply via email to