Re: [Bug] having parentheses in filenames causes failure

2009-12-29 Thread Wayne Davison
On Tue, Dec 29, 2009 at 3:53 AM, Geralt  wrote:

> Is there any reason why [--protect-args] is not the default mode?
>

Backward compatibility.  The option first appeared in 3.0.0.  A future
version (maybe 3.1.0, maybe something a bit later) will make it the default,
with --no-s available to turn it off to allow talking to older rsync
versions.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: [Bug] having parentheses in filenames causes failure

2009-12-29 Thread Geralt
Hi,

thanks, that helped :-)
Is there any reason why this is not the default mode?



Geralt.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: [Bug] having parentheses in filenames causes failure

2009-12-29 Thread Matthias Schniedermeyer
On 29.12.2009 11:51, Geralt wrote:
> Hi,
> 
> I don't know how to exactly describe the bug, but the following
> test-case reproduces the bug in 3.0.6
> 
> mkdir rsync-test
> cd rsync-test
> mkdir -p "src/directory (name)"
> touch "src/directory (name)/somefile"
> mkdir dest
> rsync --archive --dry-run --verbose "src/directory (name)/"
> "$u...@127.0.0.1:$PWD/dest/directory (name)"
> 
> The error is:
> 
> bash: -c: line 0: syntax error near unexpected token `('
> bash: -c: line 0: `rsync --server -vnlogDtpre.iLs .
> /tmp/rsync-test/dest/directory (name)'
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: error in rsync protocol data stream (code 12) at
> io.c(600) [sender=3.0.6]

Try it again with "-s" a.k.a "--protect-args" added.




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug] having parentheses in filenames causes failure

2009-12-29 Thread Geralt
Hi,

I don't know how to exactly describe the bug, but the following
test-case reproduces the bug in 3.0.6

mkdir rsync-test
cd rsync-test
mkdir -p "src/directory (name)"
touch "src/directory (name)/somefile"
mkdir dest
rsync --archive --dry-run --verbose "src/directory (name)/"
"$u...@127.0.0.1:$PWD/dest/directory (name)"

The error is:

bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `rsync --server -vnlogDtpre.iLs .
/tmp/rsync-test/dest/directory (name)'
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
io.c(600) [sender=3.0.6]



HTH,

Geralt.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html