bug-bash
[Top][All Lists]
Advanced

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

Re: Bug/limitation in 'time'


From: Chris Down
Subject: Re: Bug/limitation in 'time'
Date: Mon, 18 Mar 2013 17:02:42 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On 2013-03-18 00:46, Linda Walsh wrote:
> Bruce Dawson wrote:
> > Chris Down pointed that out. My loop now looks like this -- portable (I
> > believe) and fast:
> >
> > BashCount() {
> >     for (( i = $1 ; i > 0 ; i-- )); do
> >         :
> >     done
> >     echo Just did $1 iterations using bash math
> > }
> ----
> To do the above, you'd want to pre-init

There is no need to preinitialise the variable, I'm not sure why you think it is
necessary.



reply via email to

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