Re: Shell Script Pointers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux