bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: more complete set -e


From: Chet Ramey
Subject: Re: feature request: more complete set -e
Date: Tue, 30 Jun 2009 18:20:41 -0400
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]