Rsyncing Windows directory to a Linux box: problem with spacesin directory names

jw schultz jw at
Wed Dec 17 16:13:48 EST 2003

On Wed, Dec 17, 2003 at 01:27:42PM +0900, Charles Nadeau wrote:
> Max Kipness wrote:
> >> Another option is to upgrade to the CVS version (available in
> >> the near future as version 2.6.0) and use the --files-from
> >> option to specify your files (since it already parses the
> >> names one per line).
> > 
> > Charles,
> > 
> > Based on what was just said above, I am using Bash version 2.05b.0(1),
> Max,
> Me too:
> Mosix7 / # bash --version
> GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
> Copyright (C) 2002 Free Software Foundation, Inc.
> > and no extra configs for splitting are necessary as it splits
> > appropriately at the end of the line.
> Could it then be my version of rync?


As has been repeatedly said the problem is with how you are
dealing with whitespace in the shell.  If you insist on
fighting this battle with fagile methods you need to start
debugging the problem.

In your script replace rsync with this shell script


for arg in "$@"
	echo $arg

Then you can fiddle with escapements and IFS and other
tricks.  Do that until you get one expected argument per
line of output then put rsync back into the picture.

This is not an rsync problem, it is a shell problem.  There
are many resources out there for shell scripting.  The rsync
mailing list is not one of them.

Good luck

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at

		Remember Cernan and Schmitt

More information about the rsync mailing list