RE: Bug/limitation in 'time' (kernel setings?)...

2013-03-18 Thread Bruce Dawson
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

Re: Bug/limitation in 'time' (kernel setings?)...

2013-03-18 Thread Linda Walsh
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

Re: Should this be this way?

2013-03-18 Thread Linda Walsh
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

Re: Bug/limitation in 'time'

2013-03-18 Thread Linda Walsh
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 $

Re: Bug/limitation in 'time'

2013-03-18 Thread Chris Down
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

Re: Bug/limitation in 'time'

2013-03-18 Thread Linda Walsh
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