Problem with test applet - values above 128 are handled strange

William Thompson wt at electro-mechanical.com
Thu May 24 13:08:33 UTC 2007


On Thu, May 24, 2007 at 02:46:21PM +0200, Alexander Griesser wrote:
> 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?

Works for me:
[root at potato:/storage/linux/busybox/busybox-1.5.0] ./busybox sh
%m:%~%# [ 6 -le 6 ] && echo ok
ok
%m:%~%# [ 127 -le 6 ] && echo ok
%m:%~%# [ 128 -le 6 ] && echo ok
[root at potato:/storage/linux/busybox/busybox-1.5.0] 



More information about the busybox mailing list