tag 605990 wontfix thanks On Sun 05 Dec 2010, frenchn00b wrote: > > " When using "/" at the end of source, rsync will copy the content of the > last folder. > When not using "/" at the end of source, rsync will copy the last folder and > the content of the folder. > > When using "/" at the end of destination, rsync will paste the data inside > the last folder. > When not using "/" at the end of destination, rsync will create a folder with > the last destination folder name and paste the data inside that folder. " > > However compatible with POSIX, the use of "/" especially for the source, I > would have say that it does the opposite.
Actually, when you get used to it, it is quite logical. Imagine that the trailing slash has a dot appended to it (which effectively it does). Then how it works is what you would expect. > I would guess that it will be fixed in the next releases, since it is source > of many errors and misinterpretation. It's more that people won't take the time to understand how it works. When in doubt, use the -n switch together with -v and/or -i to see what it would do. Experiment a bit with this, then it will become clear. Rsync is a very powerful tool, it's not meant to be easy, it's meant to be as useful as possible :-) > An easy solution would be to add a switch to say to copy/move content of > folders or not. I think that the chances of such a switch being added are small, as: - to find this switch one would need to read the documentation thoroughly - reading the documentation thoroughly would show that sucha switch is not necessary as its function is available through using a trailing slash or not. Hence I'm marking this bug as wontfix. Paul -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org