[PATCH] More ash test conditions.

Denys Vlasenko vda.linux at googlemail.com
Tue Apr 8 21:29:43 UTC 2008


On Tuesday 08 April 2008 22:37, James Simmons wrote:
> Actually testing the patch now something changed from busybox 1.6.1. It no 
> longer works. The problem was this. Now I don't know if this is a bashism?
> 
> #!/bin/sh
> 
> len=10
> i=0
> 
> while [[ $((++i)) -lt len ]]; do
>         echo "i = $i"
> done

You probably need $len, not len there.
--
vda




More information about the busybox mailing list