Argument mapping issue of awk

Denys Vlasenko vda.linux at googlemail.com
Thu Apr 22 03:44:27 UTC 2010


On Wed, Apr 21, 2010 at 7:31 PM, Ondrej Zima <amiandrew at volny.cz> wrote:
> Hi all,
> I have one big problem using busybox with uClibc in embedded device with
> mipsel architecture.
> A creating some sh scripts where most used application is awk. I create
> some scripts and they didn't works.
>
> See following simple example:
>
> echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
>
> If I use it in my desktop Linux (Debian x86_64) the output is (as expected)
>
> ondra at keltek:~$ echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
> a=a,b=b,c=c
>
> But if I make the same on my busybox device, the output is wrong
>
> default at Venus:~# echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
> a=,b=,c=
>
> The mapping of arguments didn't works. And I don't know, what is wrong.
> The uClibc or busybox or something other?

It works for me. Which version of busybox and uclibc do you use?
-- 
vda


More information about the busybox mailing list