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)/" "$USER at 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.
Matthias Schniedermeyer
2009-Dec-29 11:07 UTC
[Bug] having parentheses in filenames causes failure
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)/" > "$USER at 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.
Hi, thanks, that helped :-) Is there any reason why this is not the default mode? Geralt.
On Tue, Dec 29, 2009 at 3:53 AM, Geralt <usr.gentoo at googlemail.com> 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.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20091229/24d6acaf/attachment.html>
Seemingly Similar Threads
- Unbalanced parentheses printed by warnings() crash text editor
- [klibc:update-dash] [PATCH] eval: Silence compiler warning about missing parentheses
- [klibc:update-dash] dash: eval: Silence compiler warning about missing parentheses
- re moving parentheses/square brackets from data frame numbers
- Maintain Spaces and Parentheses in Variable Names