Bug 7523 - rsync exclude file ignores spaces
Summary: rsync exclude file ignores spaces
Status: RESOLVED WORKSFORME
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.8
Hardware: x86 Linux
: P3 major (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 03:40 UTC by Jim R
Modified: 2010-06-19 00:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim R 2010-06-18 03:40:10 UTC
Using the FAQ page at rsync, using tips on the commandline with --exclude= having spaces in the file-spec pattern for --exclude, seem to be ignored by --exclude-from inside the exclude file.  I used all types of space escaping techniques:  questionmark, single \, the triple \\\, combinations of single & double quoting.

the only way I can get the path to exclude is to cut it off at the first instance of space with a *, however this may cut off similarly named directories.  This needs to be fixed.
Comment 1 Wayne Davison 2010-06-19 00:28:38 UTC
This works fine.  There is no need for any escaping inside an exclude-from file since spaces have no special meaning (apart from the plus/minus prefixes that are separated by a single space).