On Mon, Jul 13, 2020 at 7:51 PM Tim via users
<users(a)lists.fedoraproject.org> wrote:
On Mon, 2020-07-13 at 16:37 +0200, Tom H wrote:
>
> The trailing slash only matters for the source directory.
>
> I think of the trailing slash for "cp" on *BSD (and macOS) and
> "rsync" as meaning "/*"...
Does it matter anywhere? I've always put one on the end of directory
filepaths, just for my own clarity, unless something explicitly tells
me not to. I can vaguely remember some info about not doing it
somewhere in Apache configurations, but that's all.
It matters for rsync.
If you have /path/to/a/fed.txt
rsync -a /path/to/a /path/to/b
results in
/path/to/b/a/fed.txt
rsync -a /path/to/a/ /path/to/b
results in
/path/to/b/fed.txt