Bug 7523 - rsync exclude file ignores spaces
rsync exclude file ignores spaces
Product: rsync
Classification: Unclassified
Component: core
x86 Linux
: P3 major
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
Reported: 2010-06-18 03:40 UTC by Jim R
Modified: 2010-06-19 00:28 UTC (History)
0 users

See Also:


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).