On 7/14/14, 12:46 AM, Tran Thuan wrote:

> I wrote a simple loop as following:
> 
> 
> 
> while true; do
> 
>                                 sleep 1
> 
>                                 echo "hello"
> 
> done
> 
> 
> 
> But the RSS (resident set size) continue increase. (Check by ps command)
> 
> Is it possible a bug of bash? Could you please help me check it?

I can't reproduce this on MacOS X or RHEL 5 using bash-4.2 and bash-4.3.
You might try running your script using `valgrind' and seeing what that
tells you.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to