Tricky Quoting Issue in BASH

plug.org at 2nerds.com plug.org at 2nerds.com
Tue Jan 3 22:10:50 MST 2006


On Sun, 1 Jan 2006, Charles Curley wrote:
> I can build what looks like a perfectly good command, echo
> it, then run it. But the exclude pattern is ignored.

I've had better luck with something like this:

 opts="-va --exclude=*~ --delete --delete-excluded" 
 cmd="rsync $opts $src $dst"
 echo $cmd 
 $cmd 

Chris



More information about the PLUG mailing list