> problem can be solved again in this way i.e. shell like syntax :
> 
> while $i > 10 && $i++ && print $i;
> 
> mean this
> 
> while ($i  > 10 ) {$i++; print $i};

These don't mean the same thing - even in shell. The && requires truth.
Hence the reason this:

   tar cBpf - . | ( cd /dest/dir && tar xBpf - )

is *so* much safer than this:

   tar cBpf - . | ( cd /dest/dir ; tar xBpf - )

The former requires that you be able to cd to /dest/dir first before
untarring. The second one doesn't, meaning you can potentially corrupt
all your data by untarring right back over the top of it.

Sometimes braces and brackets are a Good Thing... ;-)

-Nate

Reply via email to