Re: Memory leak in for loops

2009-04-30 Thread Sandino Araico Sánchez
OK. Thanks. I have understood the difference. Bernd Eggink wrote: > Jan Schampera schrieb: >> Sandino Araico Sánchez wrote: >> >>>1. >>> #!/bin/bash >>>2. >>> 3. >>> for i in {0..c} ; do >>>4. >>> echo $i > /dev/null >>>5. >>> done >>> >>>

Re: Memory leak in for loops

2009-04-30 Thread Bernd Eggink
Jan Schampera schrieb: Sandino Araico Sánchez wrote: 1. #!/bin/bash 2. 3. for i in {0..c} ; do 4. echo $i > /dev/null 5. done Repeat-By: Run the script above and the process starts leaking memory very fast. You know what a m

Re: Memory leak in for loops

2009-04-30 Thread Jan Schampera
Sandino Araico Sánchez wrote: >1. > #!/bin/bash >2. > >3. > for i in {0..15000} ; do >4. > echo $i > /dev/null >5. > done > > > > Repeat-By: > Run the script above and the process starts leaking memory very > fast. > > Y