[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: feature request: more complete set -e
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2009-06-30 22:20:41
Message-ID: 4A4A8FB9.1050000 () case ! edu
[Download RAW message or body]

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic