Tricky Quoting Issue in BASH
charlescurley at charlescurley.com
Wed Jan 4 16:19:33 MST 2006
On Tue, Jan 03, 2006 at 10:10:50PM -0700, plug.org at 2nerds.com wrote:
> 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
Thanks, that did the trick.
Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20060104/c1979d72/attachment.bin
More information about the PLUG