I'll give those a try.
BTW, I just posted the blog post to share what I'd found. You can see it
here:
http://randomascii.wordpress.com/2013/03/18/counting-to-ten-on-linux/
I hope it's accurate, and I do think it would be worth mentioning the issue
in the documentation for 'time' and the bash 'ti
Bruce Dawson wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='$
> uname output: Linux Ubuntu1m 3.2.0-35-generic-p
Chet Ramey wrote:
> On 3/1/13 5:04 PM, Linda Walsh wrote:
>>
>> Chet Ramey wrote:
>>> Your vendor, which may be SuSE, has changed bash and shipped the modified
>>> version.
>>
>> Supposedly this has to do with memory corruption problems in
>> 4.2 and the "possibility" that it might come back
Chris Down wrote:
> 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 $
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
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