On Fri, May 15, 2009 at 10:17:21AM +1200, Spiro Harvey wrote: > My guess is that because your variables all equal zero, it's possible > that something is wrong with: > > find /usr/local/squidGuard/db -maxdepth 1 -type d | while read FOLDER; More likely he's using a shell that runs the "while" loop in a subshell. What is a=bad echo good | read a echo a is a For ksh88, ksh93, zsh it's "good"; for pdksh, bash it's "bad". -- rgds Stephen