[Bug 2647] --exclude options work from commandline but not in script

samba-bugs at samba.org samba-bugs at samba.org
Tue May 17 06:31:10 GMT 2005


https://bugzilla.samba.org/show_bug.cgi?id=2647





------- Additional Comments From dmitri.zoubkov at t-online.de  2005-05-16 23:31 -------
This isn't rsync issue but a strange manner how bash escapes the <'>.
### Script 1 (won't work):
EXLUDES="--exclude='/whatever/'"
rsync -avuz "$EXLUDES" /source /destination
### Script 2 (won't either):
RSYNC="rsync -avuz --exclude='/whatever/' /source /destination"
$RSYNC
### Script 3 (works as expected):
VAL="'/whatever/'"
EXLUDES="--exclude=$VAL"
rsync -avuz "$EXLUDES" /source /destination

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list