I make some investigation... there must be somewhere error in uclibc.
I cannot use the decimal numbers...
~/tmp # ./busybox awk 'BEGIN{print (1+1);}'
nan
I can use the octal or hexadecimal numbers...
~/tmp # ./busybox awk 'BEGIN{print (01+0x1);}'
2
But I cannot use the input variables...
~/tmp # echo "5" | ./busybox awk '{a=$0x1; b=a+05; print a,b;}'
5 nan
Please help... how and where is handled input parameters? Who do this?
Dne 22.4.2010 8:44, Ralf Rösch napsal(a):
> It works for me:
>
> echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
> a=a,b=b,c=c
>
> uname -m
> mips
>
> busybox
> BusyBox v1.16.1 (2010-04-15 17:53:29 CEST) multi-call binary.
> Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
> and others. Licensed under GPLv2.
> See source distribution for full notice.
>
> Notice: i have linked busybox against glibc (2.3.6)
>
> --
> Ralf
>
> On Thu Apr 22 2010 01:31:43 GMT+0200 (CET), Ondrej Zima
> <[email protected]> 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)
>>
>> on...@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
>>
>> defa...@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?
--
Ondrej Zima <[email protected]>
--==[ http://www.fozona.cz/ ]==--
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox