Argument mapping issue of awk

Ondrej Zima amiandrew at volny.cz
Thu Apr 22 07:17:30 UTC 2010


Dne 22.4.2010 5:44, Denys Vlasenko napsal(a):
> 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?

I apologize, I forgot this to mention.

uclibc version 0.9.28 (I must use this version because the proprietary
software without sources, which refuse to run with newer version)
busybox version 1.16.1

Running on Linux Venus 2.6.12.6-VENUS #39 mips GNU/Linux

This is very annoying... I know this must works :)

-- 
Ondrej Zima  <amiandrew at volny.cz>
--==[ http://www.fozona.cz/ ]==--


More information about the busybox mailing list