Marc Weber wrote: > Chet: >> To do otherwise would have made expr much less useful. Idioms such as >> >> var=10 >> while var=`expr $var - 1` >> do >> echo $var >> done > > Mmh I'd use the C like for loop for this which is supported by bash as well. >
A relatively recent addition to the language. The while loop idiom has been around since the original Bourne shell. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/