Problem with test applet - values above 128 are handled strange

Denis Vlasenko vda.linux at googlemail.com
Thu May 24 14:56:10 UTC 2007


On 5/24/07, Alexander Griesser <alexander.griesser at lkh-vil.or.at> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi folks!
>
> I wanted to give the latest svn snapshot of busybox a try and
> encountered the following strange issue:
>
> tuxx at vi-edv003:~/busybox/busybox$ ./busybox sh
> $ [ 6 -le 6 ] && echo ok
> ok
> $ [ 127 -le 6 ] && echo ok
> $ [ 128 -le 6 ] && echo ok
> ok
> $ exit
> tuxx at vi-edv003:~/busybox/busybox$
>
> So to me it seems as if there's some kind of magic limit above the
> value of 127. Can someone else reproduce this?

Which shell is it? (msh or ash?)



More information about the busybox mailing list