[wellylug] Shell script problem

John Fouhy john at fouhy.net
Thu Nov 1 12:19:36 NZDT 2007


On 01/11/2007, Atom Smasher <atom at smasher.org> wrote:
> what happens if you do this in the script:
>
>    echo rsync -vva $EXCLUDES $SOURCE $DEST | [ba]sh
>
> note that "[ba]sh" means bash OR sh.

   echo rsync -vva $EXCLUDES $SOURCE $DEST | sh

works correctly.  Also works correctly with | bash.

   `echo rsync -vva $EXCLUDES $SOURCE $DEST`

does not work correctly.

-- 
John.




More information about the wellylug mailing list