[wellylug] Shell script problem
Atom Smasher
atom at smasher.org
Thu Nov 1 12:46:35 NZDT 2007
On Thu, 1 Nov 2007, John Fouhy wrote:
> echo rsync -vva $EXCLUDES $SOURCE $DEST | sh
>
> works correctly. Also works correctly with | bash.
==========
cool.
> `echo rsync -vva $EXCLUDES $SOURCE $DEST`
>
> does not work correctly.
===========
try:
eval `echo rsync -vva $EXCLUDES $SOURCE $DEST`
you may have to protect shell meta characters and $IFS characters when you
assign the variables.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"The wireless telegraph is not difficult to understand.
The ordinary telegraph is like a very long cat.
You pull the tail in New York, and it meows in Los Angeles.
The wireless is the same, only without the cat."
-- Albert Einstein
More information about the wellylug
mailing list