Subject: Re: sh arithmetic expression
To: Simon Burge <simonb@wasabisystems.com>
From: Florian Stoehr <netbsd@wolfnode.de>
List: netbsd-users
Date: 12/29/2004 03:23:24
[snip]

> Remove the "let".  With just
>
> 	i=$((i+1))
>
> it works fine:
>
> 	thoreau 7> cat foo.sh
> 	#!/bin/sh
> 	i=1
> 	while [ $i -le $1 ]
> 	do
> 		echo "Run " $i
> 		i=$(($i+1))
> 	done

Yep, that does it. Thank you.

-Florian