Re: Bug: 'case' in command substitution not handled correctly

2009-04-16 Thread Bernd Eggink
Chet Ramey schrieb: Bernd Eggink wrote: GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) The shell doesn't recognize the closing parenthesis of a command substitution if a 'case' command is included and 'esac' is preceded by newline. Example: x=$(case $a in (1) echo one esac ) Try t

Re: big 'list' consumes all memory

2009-04-16 Thread pk
On Thursday 16 April 2009 11:11, Mart Frauenlob wrote: > for i in $(seq 0 15755500); do echo $i; done > -bash: xrealloc: ../bash/subst.c:512: cannot reallocate 182209024 bytes > (0 bytes allocated) > > > ok, thesis looks confirmed... > I'm no C programmer, but I try to think logically about it.

big 'list' consumes all memory

2009-04-16 Thread Mart Frauenlob
Hello, today while playing around with brace expansion, I ran into something for me unexpected. The actual intension was to compare the speed / system usage of `seq x y' and brace expansion {x..y}. So I took a fairly large integer (lets say 15755500), and ran the following: seq 0 15755500 -