Richard Geoffrion wrote:
> OK... well I have a situation now where the source path (tree: ) 
> contains a space.  I can't get the quotes passed to the rsync command 
> line.  So far, the following attempts to specify the path have not worked. 
> tree: "/home/database backups"
> tree: /home/"database backups"
> tree: /home/database[ ]backups
> tree: /home/database[.]backups
> tree: /home/database backups
> tree: /home/database\ backups
> tree: /home/database\\ backups
> 
> I even tried
> 
> tree: [/home/database backups]
> 
> to no avail.   As soon as the dirvish scripts see that space in the path 
> the path gets truncated. If I modify the rsync command posted in summary 
> and put quotes around the source path, all is well.

Interesting :(

You didn't try:

tree: "/home/database\ backups"

Does that work?

It seems what I said earlier is too simplistic. There is another feature
in dirvish that becomes involved. From the dirvish man page:

        tree: path [alias] (S)

So you have to escape the space with a backslash to prevent dirvish
interpreting it as an alias and then you have to quote the whole path so
it appears as a single path on the rsync command line.

A patch to the docs (or at least to the wiki) would be useful, I feel.

FWIW, the way I discovered this is simply to step through dirvish with
the debugger. It removes magic from programs :)

One reason I suspect I've never encountered this is that I always run
rsync daemons, so my tree never has a space or an alias!

Cheers, Dave
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to